-
Notifications
You must be signed in to change notification settings - Fork 981
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new crate "namada_core" for core types, storage_api, tx_env, vp_env
- Loading branch information
1 parent
69c0fa7
commit 08a162e
Showing
38 changed files
with
377 additions
and
315 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ resolver = "2" | |
|
||
members = [ | ||
"apps", | ||
"core", | ||
"proof_of_stake", | ||
"shared", | ||
"tests", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[package] | ||
authors = ["Heliax AG <[email protected]>"] | ||
edition = "2021" | ||
license = "GPL-3.0" | ||
name = "namada_core" | ||
resolver = "2" | ||
version = "0.9.0" | ||
|
||
[features] | ||
default = [] | ||
# for integration tests and test utilies | ||
testing = [ | ||
"rand", | ||
"rand_core", | ||
] | ||
|
||
[dependencies] | ||
# We switch off "blake2b" because it cannot be compiled to wasm | ||
# branch = "bat/arse-merkle-tree" | ||
arse-merkle-tree = {package = "sparse-merkle-tree", git = "https://github.com/heliaxdev/sparse-merkle-tree", rev = "04ad1eeb28901b57a7599bbe433b3822965dabe8", default-features = false, features = ["std", "borsh"]} | ||
bech32 = "0.8.0" | ||
borsh = "0.9.0" | ||
chrono = {version = "0.4.22", default-features = false, features = ["clock", "std"]} | ||
data-encoding = "2.3.2" | ||
derivative = "2.2.0" | ||
ed25519-consensus = "1.2.0" | ||
itertools = "0.10.0" | ||
libsecp256k1 = {git = "https://github.com/heliaxdev/libsecp256k1", rev = "bbb3bd44a49db361f21d9db80f9a087c194c0ae9", default-features = false, features = ["std", "static-context"]} | ||
rand = {version = "0.8", optional = true} | ||
rand_core = {version = "0.6", optional = true} | ||
rust_decimal = "1.26.1" | ||
serde = {version = "1.0.125", features = ["derive"]} | ||
serde_json = "1.0.62" | ||
sha2 = "0.9.3" | ||
thiserror = "1.0.30" | ||
tracing = "0.1.30" | ||
zeroize = {version = "1.5.5", features = ["zeroize_derive"]} | ||
|
||
[dev-dependencies] | ||
assert_matches = "1.5.0" | ||
libsecp256k1 = {git = "https://github.com/heliaxdev/libsecp256k1", rev = "bbb3bd44a49db361f21d9db80f9a087c194c0ae9"} | ||
pretty_assertions = "0.7.2" | ||
# A fork with state machine testing | ||
proptest = {git = "https://github.com/heliaxdev/proptest", branch = "tomas/sm"} | ||
rand = {version = "0.8"} | ||
rand_core = {version = "0.6"} | ||
test-log = {version = "0.2.7", default-features = false, features = ["trace"]} | ||
tracing-subscriber = {version = "0.3.7", default-features = false, features = ["env-filter", "fmt"]} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//! The ledger modules | ||
pub mod storage_api; | ||
pub mod tx_env; | ||
pub mod vp_env; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//! TODO | ||
#![doc(html_favicon_url = "https://dev.anoma.net/master/favicon.png")] | ||
#![doc(html_logo_url = "https://dev.anoma.net/master/rustdoc-logo.png")] | ||
#![warn(missing_docs)] | ||
#![deny(rustdoc::broken_intra_doc_links)] | ||
#![deny(rustdoc::private_intra_doc_links)] | ||
|
||
pub mod bytes; | ||
pub mod ledger; | ||
pub mod types; | ||
|
||
#[cfg(test)] | ||
#[macro_use] | ||
extern crate assert_matches; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//! Types definitions. | ||
pub mod address; | ||
pub mod chain; | ||
pub mod governance; | ||
pub mod hash; | ||
pub mod key; | ||
pub mod storage; | ||
pub mod time; | ||
pub mod token; | ||
pub mod validity_predicate; |
File renamed without changes.
Oops, something went wrong.