@@ -3,7 +3,7 @@ use std::sync::Arc;
33
44use crate :: handlers_config:: HandlersConfig ;
55use crate :: types:: {
6- AccountAddressREST , AccountRewardREST , AccountUTxOREST , AccountWithdrawalREST ,
6+ AccountAddressREST , AccountRewardREST , AccountUTxOREST , AccountWithdrawalREST , AmountList ,
77 DelegationUpdateREST , RegistrationUpdateREST ,
88} ;
99use acropolis_common:: messages:: { Message , RESTResponse , StateQuery , StateQueryResponse } ;
@@ -21,12 +21,6 @@ use anyhow::{anyhow, Result};
2121use blake2:: { Blake2b512 , Digest } ;
2222use caryatid_sdk:: Context ;
2323
24- use crate :: handlers_config:: HandlersConfig ;
25- use crate :: types:: {
26- AccountAddressREST , AccountRewardREST , AccountTotalsREST , AccountUTxOREST ,
27- AccountWithdrawalREST , AmountList , DelegationUpdateREST , RegistrationUpdateREST ,
28- } ;
29-
3024#[ derive( serde:: Serialize ) ]
3125pub struct StakeAccountRest {
3226 pub utxo_value : u64 ,
@@ -668,7 +662,7 @@ pub async fn handle_account_assets_blockfrost(
668662 AccountsStateQueryResponse :: AccountAssociatedAddresses ( addresses) ,
669663 ) ) => Ok ( Some ( addresses) ) ,
670664 Message :: StateQueryResponse ( StateQueryResponse :: Accounts (
671- AccountsStateQueryResponse :: NotFound ,
665+ AccountsStateQueryResponse :: Error ( QueryError :: NotFound { .. } ) ,
672666 ) ) => Ok ( None ) ,
673667 Message :: StateQueryResponse ( StateQueryResponse :: Accounts (
674668 AccountsStateQueryResponse :: Error ( e) ,
@@ -750,9 +744,9 @@ pub async fn handle_account_assets_blockfrost(
750744
751745/// Handle `/accounts/{stake_address}/addresses/total` Blockfrost-compatible endpoint
752746pub async fn handle_account_totals_blockfrost (
753- context : Arc < Context < Message > > ,
754- params : Vec < String > ,
755- handlers_config : Arc < HandlersConfig > ,
747+ _context : Arc < Context < Message > > ,
748+ _params : Vec < String > ,
749+ _handlers_config : Arc < HandlersConfig > ,
756750) -> Result < RESTResponse > {
757751 Ok ( RESTResponse :: with_text ( 501 , "Not implemented" ) )
758752}
0 commit comments