Update metadata and remove outdated config files / READMEs

This commit is contained in:
Thomas Eizinger 2021-05-11 10:30:13 +10:00
parent d96e20a5b0
commit 2f2b3b8a19
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
11 changed files with 22 additions and 56 deletions

View File

@ -3,6 +3,7 @@ name = "monero-harness"
version = "0.1.0" version = "0.1.0"
authors = [ "CoBloX Team <team@coblox.tech>" ] authors = [ "CoBloX Team <team@coblox.tech>" ]
edition = "2018" edition = "2018"
publish = false
[dependencies] [dependencies]
anyhow = "1" anyhow = "1"

View File

@ -1,10 +0,0 @@
# Monero Harness
Provides an implementation of `testcontainers::Image` for a monero image to run
`monerod` and `monero-wallet-rpc` in a docker container.
Also provides two standalone JSON RPC clients, one each for `monerod` and `monero-wallet-rpc`.
## Example Usage
Please see `tests/*` for example usage.

View File

@ -1 +0,0 @@
1.46.0

View File

@ -1,9 +0,0 @@
edition = "2018"
condense_wildcard_suffixes = true
format_macro_matchers = true
imports_granularity = "Crate"
use_field_init_shorthand = true
format_code_in_doc_comments = true
normalize_comments = true
wrap_comments = true
overflow_delimited_expr = true

View File

@ -1,8 +1,6 @@
use std::collections::HashMap; use std::collections::HashMap;
use testcontainers::{ use testcontainers::core::{Container, Docker, WaitForMessage};
core::{Container, Docker, WaitForMessage}, use testcontainers::Image;
Image,
};
pub const MONEROD_DAEMON_CONTAINER_NAME: &str = "monerod"; pub const MONEROD_DAEMON_CONTAINER_NAME: &str = "monerod";
pub const MONEROD_DEFAULT_NETWORK: &str = "monero_network"; pub const MONEROD_DEFAULT_NETWORK: &str = "monero_network";

View File

@ -24,13 +24,12 @@ pub mod image;
use crate::image::{MONEROD_DAEMON_CONTAINER_NAME, MONEROD_DEFAULT_NETWORK, RPC_PORT}; use crate::image::{MONEROD_DAEMON_CONTAINER_NAME, MONEROD_DEFAULT_NETWORK, RPC_PORT};
use anyhow::{anyhow, bail, Context, Result}; use anyhow::{anyhow, bail, Context, Result};
use monero_rpc::{ use monero_rpc::monerod;
monerod, use monero_rpc::monerod::MonerodRpc as _;
monerod::MonerodRpc as _, use monero_rpc::wallet::{self, GetAddress, MoneroWalletRpc as _, Refreshed, Transfer};
wallet::{self, GetAddress, MoneroWalletRpc as _, Refreshed, Transfer},
};
use std::time::Duration; use std::time::Duration;
use testcontainers::{clients::Cli, Container, Docker, RunArgs}; use testcontainers::clients::Cli;
use testcontainers::{Container, Docker, RunArgs};
use tokio::time; use tokio::time;
/// How often we mine a block. /// How often we mine a block.

View File

@ -1,10 +0,0 @@
# Monero Harness
Provides an implementation of `testcontainers::Image` for a monero image to run
`monerod` and `monero-wallet-rpc` in a docker container.
Also provides two standalone JSON RPC clients, one each for `monerod` and `monero-wallet-rpc`.
## Example Usage
Please see `tests/*` for example usage.

View File

@ -1 +0,0 @@
1.46.0

View File

@ -1,9 +0,0 @@
edition = "2018"
condense_wildcard_suffixes = true
format_macro_matchers = true
imports_granularity = "Crate"
use_field_init_shorthand = true
format_code_in_doc_comments = true
normalize_comments = true
wrap_comments = true
overflow_delimited_expr = true

View File

@ -1,6 +1,9 @@
use anyhow::{Context, Result}; use anyhow::{Context, Result};
use monero::{cryptonote::hash::Hash, util::ringct, PublicKey}; use monero::cryptonote::hash::Hash;
use serde::{de::DeserializeOwned, Deserialize, Serialize, Serializer}; use monero::util::ringct;
use monero::PublicKey;
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize, Serializer};
#[jsonrpc_client::api(version = "2.0")] #[jsonrpc_client::api(version = "2.0")]
pub trait MonerodRpc { pub trait MonerodRpc {
@ -181,7 +184,8 @@ pub enum Status {
mod monero_serde_hex_block { mod monero_serde_hex_block {
use super::*; use super::*;
use monero::consensus::Decodable; use monero::consensus::Decodable;
use serde::{de::Error, Deserialize, Deserializer}; use serde::de::Error;
use serde::{Deserialize, Deserializer};
use std::io::Cursor; use std::io::Cursor;
pub fn deserialize<'de, D>(deserializer: D) -> Result<monero::Block, D::Error> pub fn deserialize<'de, D>(deserializer: D) -> Result<monero::Block, D::Error>
@ -201,8 +205,11 @@ mod monero_serde_hex_block {
mod byte_array { mod byte_array {
use super::*; use super::*;
use serde::{de::Error, Deserializer}; use serde::de::Error;
use std::{convert::TryFrom, fmt, marker::PhantomData}; use serde::Deserializer;
use std::convert::TryFrom;
use std::fmt;
use std::marker::PhantomData;
pub fn serialize<S, B>(bytes: B, serializer: S) -> Result<S::Ok, S::Error> pub fn serialize<S, B>(bytes: B, serializer: S) -> Result<S::Ok, S::Error>
where where

View File

@ -1,5 +1,6 @@
use anyhow::{Context, Result}; use anyhow::{Context, Result};
use serde::{de::Error, Deserialize, Deserializer, Serialize}; use serde::de::Error;
use serde::{Deserialize, Deserializer, Serialize};
#[jsonrpc_client::api(version = "2.0")] #[jsonrpc_client::api(version = "2.0")]
pub trait MoneroWalletRpc { pub trait MoneroWalletRpc {