Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## Unreleased changes

## [1.4.0] - 2025-10-30

- Bumping Rust SDK version. Unknown events introduced in future protocol
versions will be skipped, but generate warning log messages:
"The node/protocol version may not be fully supported by this version of concordium-rosetta".
- Fix an issue where the `token_update` operation type was not reported by
`/network/options`.

## [1.3.1] - 2025-09-24

- Bumping up Rust SDK version to newer one which support protocol version 9.
Expand Down
8 changes: 4 additions & 4 deletions 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
Expand Up @@ -10,7 +10,7 @@ members = [

[package]
name = "concordium-rosetta"
version = "1.3.1"
version = "1.4.0"
edition = "2024"


Expand Down
11 changes: 10 additions & 1 deletion src/api/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ use crate::{
use concordium_rust_sdk::{
common::SerdeSerialize,
types::{BakerId, SpecialTransactionOutcome},
v2::IntoBlockIdentifier,
v2::{IntoBlockIdentifier, Upward},
};
use futures::{TryStreamExt, stream::StreamExt};
use log::warn;
use rosetta::models::*;
use std::cmp::max;

Expand Down Expand Up @@ -132,6 +133,14 @@ impl BlockApi {
.await?;

while let Some(e) = special_events.next().await.transpose()? {
let Upward::Known(e) = e else {
warn!(
"Encountered unknown special transaction outcome; skipping. \
The node/protocol version may not be fully supported by this version of {}.",
env!("CARGO_PKG_NAME")
);
continue;
};
match e {
SpecialTransactionOutcome::Mint {
mint_baking_reward,
Expand Down
1 change: 1 addition & 0 deletions src/api/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ impl NetworkApi {
OPERATION_TYPE_CONFIGURE_DELEGATION.to_string(),
OPERATION_TYPE_VALIDATOR_PRIMED_FOR_SUSPENSION.to_string(),
OPERATION_TYPE_VALIDATOR_SUSPENDED.to_string(),
OPERATION_TYPE_TOKEN_UPDATE.to_string(),
],
errors: vec![
handler_error::invalid_input_unsupported_field_error(None),
Expand Down
4 changes: 2 additions & 2 deletions src/api/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::api::{
transaction::*,
};
use concordium_rust_sdk::{
common::types::Amount,
common::{types::Amount, upward::Upward},
endpoints::{BlocksAtHeightInput, QueryError},
id::types::AccountAddress,
types::{
Expand Down Expand Up @@ -170,7 +170,7 @@ impl QueryHelper {
pub async fn query_block_special_events(
&self,
block_id: impl IntoBlockIdentifier,
) -> ApiResult<impl Stream<Item = ApiResult<SpecialTransactionOutcome>>> {
) -> ApiResult<impl Stream<Item = ApiResult<Upward<SpecialTransactionOutcome>>>> {
let mapped_stream = map_query_result(
self.client
.clone()
Expand Down
Loading