From 6c7f9884b3930321036c316db94d30a03238c67c Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Mon, 18 Dec 2023 12:11:29 +0100 Subject: [PATCH] release: 1.0.0 --- CHANGELOG.md | 48 +++++++++++-------- ..._transaction.xrs => submit_transaction.rs} | 13 ++--- 2 files changed, 35 insertions(+), 26 deletions(-) rename examples/{submit_transaction.xrs => submit_transaction.rs} (51%) diff --git a/CHANGELOG.md b/CHANGELOG.md index d78229e..11b9219 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,29 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased -## 1.0.0 - 2023-xx-xx +## 1.0.0 - 2023-12-18 ### Changed -- Per endpoint pagination -- Github Continuous integration -- Cargo Clippy + rustfmt -- Removed macros -- Tests -- Added tx evaluate endpoint -- Fetch all methods -- Cleanup -- Settings refactored -- Updated data and schemas -- Added missing endpoints -- More examples -- Unit tests -- linting -- Added missing endpoints `accounts_addresses_total`, `addresses_extended`, `addresses_utxos_asset`, `network_eras`, `mempool`, `mempool_hash`, `mempool_addresses_address`, `scripts_hash_json`, `scripts_hash_cbor`, `scripts_datum_hash`, `scripts_datum_hash_cbor`, `utils_tx_evaluate`, `utils_tx_evaluate_utxos` - -### Removed - -- macros +- Implemented pagination for each endpoint. +- Integrated GitHub Continuous Integration for automated testing and deployment. +- Applied Cargo Clippy and rustfmt for code linting and formatting. +- Removed macros. +- Expanded test coverage with additional tests. +- Enhanced data fetching methods. +- Conducted code cleanup and refactoring. +- Refactored settings for improved clarity and efficiency. +- Updated data structures and schemas to the latest standards. +- Provided more comprehensive examples for better user understanding. +- Enhanced unit tests for more robust code testing. +- Implemented additional linting measures for code quality assurance. +- ENDPOINTS.md now contains a table of implemented endpoints. +- Added missing endpoints: + - `accounts_addresses_total` + - `addresses_extended` + - `addresses_utxos_asset` + - `network_eras` + - `mempool` + - `mempool_hash` + - `mempool_addresses_address` + - `scripts_hash_json` + - `scripts_hash_cbor` + - `scripts_datum_hash` + - `scripts_datum_hash_cbor` + - `utils_tx_evaluate` + - `utils_tx_evaluate_utxos` ## 0.2.1 - 2023-05-02 diff --git a/examples/submit_transaction.xrs b/examples/submit_transaction.rs similarity index 51% rename from examples/submit_transaction.xrs rename to examples/submit_transaction.rs index 354b201..6f9dff7 100644 --- a/examples/submit_transaction.xrs +++ b/examples/submit_transaction.rs @@ -1,14 +1,15 @@ -use blockfrost::{BlockFrostApi, BlockFrostSettings}; +use blockfrost::{BlockFrostSettings, BlockfrostAPI, BlockfrostResult}; -fn build_api() -> blockfrost::Result { - let configurations = load::configurations_from_env()?; - let project_id = configurations["project_id"].as_str().unwrap(); - let api = BlockFrostApi::new(project_id, BlockFrostSettings::new()); +fn build_api() -> BlockfrostResult { + let api = BlockfrostAPI::new( + "mainnetxvMK4xOpp5mHJgihi055KDLU64JJv2be", + BlockFrostSettings::new(), + ); Ok(api) } #[tokio::main] -async fn main() -> blockfrost::Result<()> { +async fn main() -> BlockfrostResult<()> { let api = build_api()?; // Should contain the correct cbor contents