MCPcopy Create free account
hub / github.com/dfinity/orbit / withAgent

Method withAgent

apps/wallet/src/plugins/services.plugin.ts:34–39  ·  view source on GitHub ↗
(icAgent: HttpAgent)

Source from the content-addressed store, hash-verified

32 constructor(public services: Services = getDefaultServices()) {}
33
34 withAgent(icAgent: HttpAgent): ServiceManager {
35 this.services.controlPanel = new ControlPanelService(icAgent);
36 this.services.station = new StationService(icAgent);
37
38 return this;
39 }
40
41 install(app: App): void {
42 app.config.globalProperties.$services = this.services;

Callers 1

initializeAppFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected