MCPcopy Create free account
hub / github.com/Unboxed-Software/anchor-subscriptions / convertUser

Function convertUser

client/shared/utils/conversions.ts:52–58  ·  view source on GitHub ↗
(user: any, pubkey: web3.PublicKey)

Source from the content-addressed store, hash-verified

50}
51
52export function convertUser(user: any, pubkey: web3.PublicKey): User {
53 return {
54 pubkey: pubkey,
55 auth: user.auth,
56 numApps: user.numApps,
57 }
58}
59
60function convertInterval(interval: any): Interval {
61 if (interval.month) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected