Skip to content

Commit

Permalink
chore: changelog and release
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvolek committed May 31, 2024
1 parent 1c80baa commit 517eaf9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 29 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

## 1.0.2 - 2023-05-31

### Added

- Added `derive_address` and `utils_tx_evaluate` endpoints.

## 1.0.1 - 2023-01-01

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blockfrost"
version = "1.0.1"
version = "1.0.2"
edition = "2021"
keywords = ["blockfrost", "blockchain", "cardano", "ipfs", "nft"]
categories = ["api-bindings", "asynchronous", "cryptography::cryptocurrencies"]
Expand Down
2 changes: 1 addition & 1 deletion ENDPOINTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@
- Utils
- [x] `GET /utils/addresses/xpub/:xpub/:role/:index`
- [x] `POST /utils/txs/evaluate`
- [x] `POST /utils/txs/evaluate/utxos`
- [] `POST /utils/txs/evaluate/utxos`
1 change: 0 additions & 1 deletion examples/all_requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ async fn main() -> BlockfrostResult<()> {
// Utils
let utils_derive_result = api.derive_address("d507c8f866691bd96e131334c355188b1a1d0b2fa0ab11545075aab332d77d9eb19657ad13ee581b56b0f8d744d66ca356b93d42fe176b3de007d53e9c4c4e7a", "0", "1").await;
let utils_tx_evaluate_result = api.utils_tx_evaluate(tx_data).await;
// let utils_tx_evaluate_utxos_result = api.utils_tx_evaluate_utxos(vec![0, 1, 2, 3]).await;

println!("root: {:#?}", root);
println!("health: {:#?}", health);
Expand Down
25 changes: 0 additions & 25 deletions src/api/endpoints/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,4 @@ impl BlockfrostAPI {

json_from(&text).map_err(|reason| json_error(url, text, reason))
}

pub async fn utils_tx_evaluate_utxos(
&self, transaction_data: Vec<u8>,
) -> BlockfrostResult<Value> {
let body = Body::from(transaction_data);
let url = Url::from_endpoint(self.base_url.as_str(), "/utils/txs/evaluate/utxos")?;

let request = self
.client
.request(Method::POST, &url)
.header("Content-Type", HeaderValue::from_static("application/cbor"))
.body(body);

let (status, text) = send_request(request, self.settings.retry_settings)
.await
.map_err(|reason| BlockfrostError::Reqwest {
url: url.clone(),
reason,
})?;

if !status.is_success() {
return Err(process_error_response(&text, status, &url));
}
json_from(&text).map_err(|reason| json_error(url, text, reason))
}
}

0 comments on commit 517eaf9

Please sign in to comment.