Skip to content

Commit

Permalink
release: v0.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Ceccon <francesco@ceccon.me>
  • Loading branch information
fracek committed Jan 15, 2021
1 parent 5f6530a commit fa650d3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]


## [0.2.0] - 2020-08-29
### Updated
- Updated dependencies


## [0.1.0] - 2020-08-29
### Added
- Resolve stellar address
Expand Down
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stellar-federation"
version = "0.1.1"
version = "0.2.0"
authors = ["Francesco Ceccon <francesco@ceccon.me>"]
edition = "2018"
description = "Library to retrieve information about a Stellar address."
Expand All @@ -12,16 +12,16 @@ keywords = ["stellar", "blockchain"]

[dependencies]
base64 = "0.12.3"
hyper = "0.13.6"
hyper-tls = "0.4.1"
hyper = { version = "0.14.2", features = ["client", "http1", "stream"] }
hyper-tls = "0.5.0"
url = "2.1.1"
http = "0.2.1"
http = "0.2.3"
serde = "1.0.114"
serde_derive = "1.0.114"
serde_json = "1.0.56"
stellar-base = "0.4.1"
stellar-toml = "0.2.0"
stellar-base = "0.5.0"
stellar-toml = "0.3.0"
thiserror = "1.0.20"

[dev-dependencies]
tokio = { version = "0.2.21", features = ["full"] }
tokio = { version = "1.0.2", features = ["full"] }
8 changes: 4 additions & 4 deletions tests/federation_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use stellar_federation::resolve_stellar_address;

#[tokio::test]
async fn test_federation() {
let no_memo = resolve_stellar_address("francesco*ceccon.me")
let no_memo = resolve_stellar_address("francesco*stellar.ceccon.me")
.await
.unwrap();

Expand All @@ -11,19 +11,19 @@ async fn test_federation() {
"GBUFHFEIMKTBQQFDSCAZFOC6MAUE3EHBVE4S4RYKMX62PMWDIDSD44CP"
);

let with_memo_text = resolve_stellar_address("with-text-memo*ceccon.me")
let with_memo_text = resolve_stellar_address("with-text-memo*stellar.ceccon.me")
.await
.unwrap();

assert!(with_memo_text.memo.unwrap().is_text());

let with_memo_id = resolve_stellar_address("with-id-memo*ceccon.me")
let with_memo_id = resolve_stellar_address("with-id-memo*stellar.ceccon.me")
.await
.unwrap();

assert!(with_memo_id.memo.unwrap().is_id());

let with_memo_hash = resolve_stellar_address("with-hash-memo*ceccon.me")
let with_memo_hash = resolve_stellar_address("with-hash-memo*stellar.ceccon.me")
.await
.unwrap();

Expand Down

0 comments on commit fa650d3

Please sign in to comment.