UNPKG

@ticketto/protocol

Version:

Library that defines the interfaces of the ticketto protocol to be implemented on a client

16 lines (15 loc) 648 B
import { AccountId, AccountIdentity } from "@ticketto/types"; export interface DirectoryCalls { /** * Registers a new acccount * @param accountId The {@link AccountId} to insert * @param identity The initial identity for the new {@link Account} */ insert(accountId: AccountId, identity: AccountIdentity): Promise<void>; /** * Sets the identity of an account * @param accountId The {@link AccountId} for the account to set the identity * @param identity The fields of {@link AccountIdentity} to update */ setIdentity(accountId: AccountId, identity: Partial<AccountIdentity>): Promise<void>; }