Skip to content

Commit

Permalink
v0.19.3
Browse files Browse the repository at this point in the history
- correct exposure of types from dependency
- bitcoinsv v0.2.4
- cargo update
  • Loading branch information
Danconnolly committed Mar 9, 2024
1 parent b56ead3 commit 7c299f5
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 19 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.19.3
- correct exposure of types from dependency
- bitcoinsv v0.2.4
- cargo update

# 0.19.2
- Updated to use bitcoinsv crate v0.2.2.
- Using verbosity level 2 for get_block_header_info to provide more information.
Expand Down
9 changes: 5 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitcoinsv-rpc"
version = "0.19.2"
version = "0.19.3"
authors = [
"Daniel Connolly <[email protected]>"
]
Expand All @@ -23,7 +23,7 @@ jsonrpc = { version = "0.16.0", features = ["minreq_http"]}
serde = "1"
serde_json = "1"
hex = "0.4.3"
bitcoinsv = "0.2.2"
bitcoinsv = "0.2.4"
async-trait = "0.1.75"

[dev-dependencies]
Expand Down
5 changes: 3 additions & 2 deletions client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ use serde;
use serde_json;

Check warning on line 12 in client/src/client.rs

View workflow job for this annotation

GitHub Actions / Internal Tests

this import is redundant

warning: this import is redundant --> client/src/client.rs:12:1 | 12 | use serde_json; | ^^^^^^^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports

Check warning on line 12 in client/src/client.rs

View workflow job for this annotation

GitHub Actions / Internal Tests

this import is redundant

warning: this import is redundant --> client/src/client.rs:12:1 | 12 | use serde_json; | ^^^^^^^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports

use log::Level::{Debug, Trace, Warn};
use bitcoinsv::bitcoin::{BlockHeader, FullBlockStream};
use bitcoinsv_rpc_json::{Tx, TxHash, BlockHash, Amount, GetNetworkInfoResult};
use bitcoinsv::bitcoin::{BlockHeader, FullBlockStream, Tx, TxHash, BlockHash};
use bitcoinsv::util::Amount;
use bitcoinsv_rpc_json::GetNetworkInfoResult;

use crate::error::*;
use crate::json;
Expand Down
7 changes: 3 additions & 4 deletions client/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ pub enum Error {
UnexpectedStructure,
/// The daemon returned an error string.
ReturnedError(String),
// BitcoinSVError(bitcoinsv::Error),
MinReqError(jsonrpc::minreq_http::Error),
SVJsonError(bitcoinsv_rpc_json::Error),
SVJsonError(bitcoinsv::Error),
}

impl From<jsonrpc::error::Error> for Error {
Expand Down Expand Up @@ -56,8 +55,8 @@ impl From<jsonrpc::minreq_http::Error> for Error {
}
}

impl From<bitcoinsv_rpc_json::Error> for Error {
fn from(e: bitcoinsv_rpc_json::Error) -> Error {
impl From<bitcoinsv::Error> for Error {
fn from(e: bitcoinsv::Error) -> Error {
Error::SVJsonError(e)
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ pub use json::*;
mod client;
mod error;

pub use crate::client::*;
pub use crate::client::{Auth, Client, RpcApi};
pub use crate::error::Error;

1 change: 1 addition & 0 deletions integration_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ log = "0.4"
env_logger = "0.10.1"
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
bitcoinsv = "0.2.4"
3 changes: 2 additions & 1 deletion integration_test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

use tokio_stream::StreamExt;
use bitcoinsv_rpc::jsonrpc::error::Error as JsonRpcError;
use bitcoinsv_rpc::{Auth, BlockchainId, Client, Error, RpcApi};
use bitcoinsv_rpc::{Auth, Client, Error, RpcApi};
use bitcoinsv::bitcoin::BlockchainId;


/// Assert that the call returns the specified error message.
Expand Down
4 changes: 2 additions & 2 deletions json/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitcoinsv-rpc-json"
version = "0.19.2"
version = "0.19.3"
authors = [
"Daniel Connolly <[email protected]>",
]
Expand All @@ -20,7 +20,7 @@ path = "src/lib.rs"
hex = "0.4.3"
serde = { version = "1", features = [ "derive" ] }
serde_json = "1"
bitcoinsv = "0.2.2"
bitcoinsv = "0.2.4"

[dev-dependencies]
approx = "0.5"
5 changes: 2 additions & 3 deletions json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ extern crate alloc;
use std::collections::HashMap;
use serde::{Deserialize, Serialize};
use std::fmt;
pub use bitcoinsv::Error;
pub use bitcoinsv::bitcoin::{BlockchainId, BlockHash, Encodable, Hash, MerkleRoot, Tx, TxHash};
pub use bitcoinsv::util::Amount;
use bitcoinsv::bitcoin::{BlockchainId, BlockHash, Encodable, Hash, MerkleRoot, Tx, TxHash};
use bitcoinsv::util::Amount;

/// A module used for serde serialization of bytes in hexadecimal format.
///
Expand Down

0 comments on commit 7c299f5

Please sign in to comment.