MCPcopy Create free account
hub / github.com/GalaChain/sdk / PublicKeyContractAPI

Interface PublicKeyContractAPI

chain-api/src/client/api/PublicKeyContractAPI.ts:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26import { CommonContractAPI, commonContractAPI } from "./CommonContractAPI";
27
28export interface PublicKeyContractAPI extends CommonContractAPI {
29 GetPublicKey(user?: string | GetPublicKeyDto): Promise<GalaChainResponse<PublicKey>>;
30 UpdatePublicKey(dto: UpdatePublicKeyDto): Promise<GalaChainResponse<void>>;
31 RegisterUser(dto: RegisterUserDto): Promise<GalaChainResponse<string>>;
32 GetMyProfile(dto: GetMyProfileDto): Promise<GalaChainResponse<UserProfile>>;
33}
34
35export const publicKeyContractAPI = (client: ChainClient): PublicKeyContractAPI => ({
36 ...commonContractAPI(client),

Callers 3

gcclient.spec.tsFile · 0.65
createRegisteredUserFunction · 0.65
ClientApi.spec.tsFile · 0.65

Implementers 1

PublicKeyContractchaincode/src/contracts/PublicKeyContr

Calls

no outgoing calls

Tested by

no test coverage detected