Skip to content

Commit 517eaf9

Browse files
committed
chore: changelog and release
1 parent 1c80baa commit 517eaf9

File tree

6 files changed

+9
-29
lines changed

6 files changed

+9
-29
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## 1.0.2 - 2023-05-31
11+
12+
### Added
13+
14+
- Added `derive_address` and `utils_tx_evaluate` endpoints.
15+
1016
## 1.0.1 - 2023-01-01
1117

1218
### Fixed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "blockfrost"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
edition = "2021"
55
keywords = ["blockfrost", "blockchain", "cardano", "ipfs", "nft"]
66
categories = ["api-bindings", "asynchronous", "cryptography::cryptocurrencies"]

ENDPOINTS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@
102102
- Utils
103103
- [x] `GET /utils/addresses/xpub/:xpub/:role/:index`
104104
- [x] `POST /utils/txs/evaluate`
105-
- [x] `POST /utils/txs/evaluate/utxos`
105+
- [] `POST /utils/txs/evaluate/utxos`

examples/all_requests.rs

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ async fn main() -> BlockfrostResult<()> {
141141
// Utils
142142
let utils_derive_result = api.derive_address("d507c8f866691bd96e131334c355188b1a1d0b2fa0ab11545075aab332d77d9eb19657ad13ee581b56b0f8d744d66ca356b93d42fe176b3de007d53e9c4c4e7a", "0", "1").await;
143143
let utils_tx_evaluate_result = api.utils_tx_evaluate(tx_data).await;
144-
// let utils_tx_evaluate_utxos_result = api.utils_tx_evaluate_utxos(vec![0, 1, 2, 3]).await;
145144

146145
println!("root: {:#?}", root);
147146
println!("health: {:#?}", health);

src/api/endpoints/utils.rs

-25
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,4 @@ impl BlockfrostAPI {
3737

3838
json_from(&text).map_err(|reason| json_error(url, text, reason))
3939
}
40-
41-
pub async fn utils_tx_evaluate_utxos(
42-
&self, transaction_data: Vec<u8>,
43-
) -> BlockfrostResult<Value> {
44-
let body = Body::from(transaction_data);
45-
let url = Url::from_endpoint(self.base_url.as_str(), "/utils/txs/evaluate/utxos")?;
46-
47-
let request = self
48-
.client
49-
.request(Method::POST, &url)
50-
.header("Content-Type", HeaderValue::from_static("application/cbor"))
51-
.body(body);
52-
53-
let (status, text) = send_request(request, self.settings.retry_settings)
54-
.await
55-
.map_err(|reason| BlockfrostError::Reqwest {
56-
url: url.clone(),
57-
reason,
58-
})?;
59-
60-
if !status.is_success() {
61-
return Err(process_error_response(&text, status, &url));
62-
}
63-
json_from(&text).map_err(|reason| json_error(url, text, reason))
64-
}
6540
}

0 commit comments

Comments
 (0)