File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ use serde::Deserialize;
66
77use crate :: build:: BuildData ;
88
9- /// Historical information about the canister
109#[ derive( CandidType , Deserialize , Clone , Debug ) ]
10+ /// Information about a canister upgrade, tracking deployment details and blockchain state.
1111pub struct UpgradeInfo {
12- /// The build data of the canister
12+ /// Compilation and build information for the deployed canister version
1313 pub build_data : BuildData ,
14- /// The timestamp of the deployment
14+ /// Unix timestamp (in seconds) when the upgrade was deployed.
1515 pub deploy_ts : u64 ,
16- /// The last block number
16+ /// The blockchain block number at the time the upgrade was performed.
1717 pub last_block_number : u64 ,
1818}
1919
Original file line number Diff line number Diff line change @@ -928,10 +928,8 @@ impl<C: CanisterClient> EvmCanisterClient<C> {
928928 self . client . query ( "get_blockchain_block_info" , ( ) ) . await
929929 }
930930
931- /// Returns the upgrade info for the canister of the last `count` entries
931+ /// Returns the details of the last `count` canister upgrades.
932932 pub async fn get_upgrade_info ( & self , count : u64 ) -> CanisterClientResult < UpgradeInfo > {
933- self . client
934- . query ( "get_upgrade_info_paginated" , ( count, ) )
935- . await
933+ self . client . query ( "get_upgrade_info" , ( count, ) ) . await
936934 }
937935}
You can’t perform that action at this time.
0 commit comments