UNPKG

@citizenwallet/sdk

Version:

An sdk to easily work with citizen wallet.

19 lines 948 B
import { type CommunityConfig } from "../config"; export interface Profile { account: string; description: string; image: string; image_medium: string; image_small: string; name: string; username: string; } export interface ProfileWithTokenId extends Profile { token_id: string; } export declare const formatProfileImageLinks: (ipfsUrl: string, profile: Profile) => Profile; export declare const formatUsernameToBytes32: (username: string) => string; export declare const getProfileFromId: (ipfsDomain: string, config: CommunityConfig, id: string) => Promise<ProfileWithTokenId | null>; export declare const getProfileFromAddress: (ipfsDomain: string, config: CommunityConfig, address: string) => Promise<ProfileWithTokenId | null>; export declare const getProfileFromUsername: (ipfsDomain: string, config: CommunityConfig, username: string) => Promise<ProfileWithTokenId | null>; //# sourceMappingURL=index.d.ts.map