CanisterActions

CanisterActions - High level asynchronous functions for interacting with the IC Management Canister

public func updateCanisterSettings() : async ()

Calls the ic management canister's update_settings method with the provided parameters to update the canister's settings belonging to the provided canister principal

public func upgradeCanisterCode() : async ()

Calls the ic management canister's install_code method with mode = #upgrade and the provided parameters to upgrade the canister belonging to the provided canister principal

public func stopCanister(canisterPrincipal : Principal) : async ()

Calls the ic management canister's delete_canister method to stop the canister belonging to the provided canister principal

public func deleteCanister(canisterPrincipal : Principal) : async ()

Calls the ic management canister's delete_canister method to delete the canister belonging to the provided canister principal

public func transferCycles(transferToCanisterPrincipal : Principal) : async ()

Calls the ic management canister's deposit_cycles method to transfer cycles back to the provided canisterId principal