|
|
@@ -29,7 +29,7 @@ export declare class BankClient {
|
|
|
appendPrivate(peerAddr: string, topic: string, hash?: string, replaceHash?: string, deleteHash?: string): Promise<void>;
|
|
|
retrievePrivate(peerAddr: string, topic: string): Promise<string>;
|
|
|
subscribePrivate(peerAddr: string, topic: string, connectCallback: () => void, messageCallback: (data: any) => void): Promise<void>;
|
|
|
- getOrCreateContact(peerId: string, addressType: string, addressValue: string): Promise<ContactItem>;
|
|
|
+ getOrCreateContact(peerId: string, addressType: string, addressValue: string, contactBook?: ContactBook): Promise<ContactItem>;
|
|
|
createContact(peerId: string, addressType?: string, addressValue?: string): Promise<ContactItem>;
|
|
|
getAllContacts(peerId: string): Promise<ContactItem[]>;
|
|
|
getContactBook(peerId: string): Promise<ContactBook>;
|