Skip to content

Commit 14fcd80

Browse files
Merge pull request #340 from iqlusioninc/v0.1.0
stdtx v0.1.0
2 parents a8b2cfc + d9a6e5f commit 14fcd80

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stdtx/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## [0.1.0] (2020-01-27)
2+
3+
- Initial release

stdtx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "stdtx"
33
description = "Extensible schema-driven Cosmos StdTx builder and Amino serializer"
4-
version = "0.0.0" # Also update html_root_url in lib.rs when bumping this
4+
version = "0.1.0" # Also update html_root_url in lib.rs when bumping this
55
authors = ["Tony Arcieri <[email protected]>"]
66
license = "Apache-2.0"
77
homepage = "https://github.com/iqlusioninc/crates/"

stdtx/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
Extensible schema-driven [Cosmos] [StdTx] builder and [Amino] serializer.
1212

13+
[Documentation][docs-link]
14+
1315
## About
1416

1517
**stdtx.rs** is a Rust library for composing transactions in the [StdTx]

stdtx/src/error.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,18 @@ impl From<Context<ErrorKind>> for Error {
7878
}
7979
}
8080

81+
impl From<ecdsa::signature::Error> for Error {
82+
fn from(err: ecdsa::signature::Error) -> Error {
83+
Context::new(ErrorKind::Signature, Some(err.into())).into()
84+
}
85+
}
86+
8187
impl From<rust_decimal::Error> for Error {
8288
fn from(err: rust_decimal::Error) -> Error {
8389
Context::new(ErrorKind::Decimal, Some(err.into())).into()
8490
}
8591
}
8692

87-
impl From<ecdsa::signature::Error> for Error {
88-
fn from(err: ecdsa::signature::Error) -> Error {
89-
Context::new(ErrorKind::Signature, Some(err.into())).into()
90-
}
91-
}
9293
impl From<subtle_encoding::Error> for Error {
9394
fn from(err: subtle_encoding::Error) -> Error {
9495
Context::new(ErrorKind::Parse, Some(err.into())).into()

stdtx/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@
121121
//! [`yubihsm`]: https://docs.rs/yubihsm
122122
//! [`stdtx::Builder`]: https://docs.rs/stdtx/latest/stdtx/stdtx/struct.Builder.html
123123
124-
#![doc(html_root_url = "https://docs.rs/stdtx/0.0.0")]
124+
#![doc(html_root_url = "https://docs.rs/stdtx/0.1.0")]
125125
#![forbid(unsafe_code)]
126-
#![warn(rust_2018_idioms, missing_docs, unused_qualifications)]
126+
#![warn(missing_docs, rust_2018_idioms, unused_qualifications)]
127127

128128
pub mod address;
129129
pub mod amino_types;

0 commit comments

Comments
 (0)