primitives: initial creation of files

This commit is contained in:
Jon Häggblad
2022-03-15 11:02:38 +01:00
parent 8ad3565f2c
commit c1d136bd54
4 changed files with 46 additions and 0 deletions
Generated
+8
View File
@@ -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"
+1
View File
@@ -44,6 +44,7 @@ members = [
"common/nymsphinx/params",
"common/nymsphinx/types",
"common/pemstore",
"common/primitives",
"common/socks5/proxy-helpers",
"common/socks5/requests",
"common/topology",
+8
View File
@@ -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"
+29
View File
@@ -0,0 +1,29 @@
// Copyright 2022 - Nym Technologies SA <contact@nymtech.net>
// 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<cosmrs::Coin> for Coin {
fn from(_: cosmrs::Coin) -> Self {
todo!()
}
}
impl From<cosmwasm_std::Coin> for Coin {
fn from(_: cosmwasm_std::Coin) -> Self {
todo!()
}
}