diff --git a/Cargo.lock b/Cargo.lock index 7ad3ea4834..a9fb2a8f26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3039,6 +3039,14 @@ dependencies = [ "websocket-requests", ] +[[package]] +name = "nym-primitives" +version = "0.1.0" +dependencies = [ + "cosmrs", + "cosmwasm-std", +] + [[package]] name = "nym-socks5-client" version = "0.12.1" diff --git a/Cargo.toml b/Cargo.toml index f7d3a9de93..24d9e779bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,6 +44,7 @@ members = [ "common/nymsphinx/params", "common/nymsphinx/types", "common/pemstore", + "common/primitives", "common/socks5/proxy-helpers", "common/socks5/requests", "common/topology", diff --git a/common/primitives/Cargo.toml b/common/primitives/Cargo.toml new file mode 100644 index 0000000000..c66c95aa9d --- /dev/null +++ b/common/primitives/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "nym-primitives" +version = "0.1.0" +edition = "2021" + +[dependencies] +cosmrs = { version = "0.4.1", features = ["rpc", "bip32", "cosmwasm"] } +cosmwasm-std = "1.0.0-beta3" diff --git a/common/primitives/src/lib.rs b/common/primitives/src/lib.rs new file mode 100644 index 0000000000..e85be9176e --- /dev/null +++ b/common/primitives/src/lib.rs @@ -0,0 +1,29 @@ +// Copyright 2022 - Nym Technologies SA +// SPDX-License-Identifier: Apache-2.0 + +//use cosmrs::Decimal; +//use cosmrs::Denom as CosmosDenom; +//use cosmrs::Coin as CosmosCoin; +//use cosmwasm_std::Coin as CosmWasmCoin; +//use cosmwasm_std::Uint128; + +use cosmwasm_std::Uint128; + +#[derive(Debug)] +pub struct Coin { + pub denom: String, + pub amount: Uint128, +} + +impl From for Coin { + fn from(_: cosmrs::Coin) -> Self { + todo!() + } +} + +impl From for Coin { + fn from(_: cosmwasm_std::Coin) -> Self { + todo!() + } +} +