package_manager_backend/main_indirect

Canister that takes on itself potentially non-returning calls.

actor class MainIndirect({ packageManager : Principal; mainIndirect : Principal; simpleIndirect : Principal; battery : Principal; user : Principal; installationId : Common.InstallationId; userArg : Blob })

public func init({ installationId : Common.InstallationId }) : async ()

public func b44c4a9beec74e1c8a7acbe46256f92f_isInitialized() : async ()

public func getOwners() : async [Principal]

public func setOwners(newOwners : [Principal]) : async ()

public func addOwner(newOwner : Principal) : async ()

public func removeOwner(oldOwner : Principal) : async ()

public func setOurPM(pm : Principal) : async ()

public func installPackagesWrapper({ pmPrincipal : Principal; packages : [{ repo : Common.RepositoryRO; packageName : Common.PackageName; version : Common.Version; preinstalledModules : [(Text, Principal)]; arg : Blob; initArg : ?Blob }]; minInstallationId : Common.InstallationId; user : Principal; afterInstallCallback : ?{ canister : Principal; name : Text; data : Blob }; bootstrapping : Bool }) : ()

Internal.

public func installModule({ installationId : Common.InstallationId; moduleNumber : Nat; moduleName : ?Text; wasmModule : Common.SharedModule; user : Principal; packageManager : Principal; mainIndirect : Principal; simpleIndirect : Principal; preinstalledCanisterId : ?Principal; arg : Blob; afterInstallCallback : ?{ canister : Principal; name : Text; data : Blob } }) : ()

public func upgradePackageWrapper({ minUpgradeId : Common.UpgradeId; packages : [{ installationId : Common.InstallationId; packageName : Common.PackageName; version : Common.Version; repo : Common.RepositoryRO; arg : Blob; initArg : ?Blob }]; user : Principal; afterUpgradeCallback : ?{ canister : Principal; name : Text; data : Blob } }) : ()

public func upgradeOrInstallModule({ upgradeId : Common.UpgradeId; installationId : Common.InstallationId; moduleNumber : Nat; moduleName : Text; wasmModule : Common.SharedModule; user : Principal; packageManager : Principal; simpleIndirect : Principal; arg : Blob; canister_id : ?Principal; afterUpgradeCallback : ?{ canister : Principal; name : Text; data : Blob } }) : ()

public func topUpOneCanisterFinish(canister_id : Principal, fulfillment : Common.CanisterFulfillment) : ()

Internal.

public func withdrawCycles(amount : Nat, payee : Principal) : async ()