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

Method getUserGroup

apps/wallet/src/services/station.service.ts:211–222  ·  view source on GitHub ↗
(
    input: GetUserGroupInput,
    verifiedCall = false,
  )

Source from the content-addressed store, hash-verified

209 }
210
211 async getUserGroup(
212 input: GetUserGroupInput,
213 verifiedCall = false,
214 ): Promise<ExtractOk<GetUserGroupResult>> {
215 const actor = verifiedCall ? this.verified_actor : this.actor;
216 const result = await actor.get_user_group(input);
217 if (variantIs(result, 'Err')) {
218 throw result.Err;
219 }
220
221 return result.Ok;
222 }
223
224 async myUser(verifiedCall = false): Promise<{ me: User; privileges: UserPrivilege[] } | null> {
225 const actor = verifiedCall ? this.verified_actor : this.actor;

Callers 1

populateUserSpecifierFunction · 0.80

Calls 2

variantIsFunction · 0.90
get_user_groupMethod · 0.80

Tested by

no test coverage detected