diff --git a/Cargo.lock b/Cargo.lock index a7b2ca09d1b..0df0d434ecb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4681,6 +4681,16 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "namada_token" +version = "0.28.1" +dependencies = [ + "namada_core", + "namada_shielded_token", + "namada_storage", + "namada_trans_token", +] + [[package]] name = "namada_trans_token" version = "0.28.1" diff --git a/Cargo.toml b/Cargo.toml index 091f9d5ec91..ca168b46cf6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,6 +23,7 @@ members = [ "storage", "test_utils", "tests", + "token", "trans_token", "tx", "tx_env", diff --git a/Makefile b/Makefile index d56df99d9ed..51d9dae58bf 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,7 @@ crates += namada_state crates += namada_storage crates += namada_test_utils crates += namada_tests +crates += namada_token crates += namada_trans_token crates += namada_tx crates += namada_tx_env diff --git a/token/Cargo.toml b/token/Cargo.toml new file mode 100644 index 00000000000..5b5138e0142 --- /dev/null +++ b/token/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "namada_token" +description = "Namada transparent and shielded token" +resolver = "2" +authors.workspace = true +edition.workspace = true +documentation.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +readme.workspace = true +repository.workspace = true +version.workspace = true + +[dependencies] +namada_core = { path = "../core", default-features = false } +namada_shielded_token = { path = "../shielded_token" } +namada_storage = { path = "../storage" } +namada_trans_token = { path = "../trans_token" } diff --git a/token/src/lib.rs b/token/src/lib.rs new file mode 100644 index 00000000000..6bbaeb07fc2 --- /dev/null +++ b/token/src/lib.rs @@ -0,0 +1,10 @@ +//! Namada transparent and shielded token types, storage keys and storage +//! fns. + +pub use namada_shielded_token::*; +pub use namada_trans_token::*; + +pub mod storage_key { + pub use namada_shielded_token::storage_key::*; + pub use namada_trans_token::storage_key::*; +}