|
|
@@ -11,6 +11,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
};
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
+const contact_book_1 = require("./contact-book");
|
|
|
const crypto = require("libp2p-crypto");
|
|
|
const ws_1 = __importDefault(require("ws"));
|
|
|
const contact_item_1 = require("./contact-item");
|
|
|
@@ -258,6 +259,11 @@ class BankClient {
|
|
|
return items.map(data => new contact_item_1.ContactItem(data));
|
|
|
});
|
|
|
}
|
|
|
+ getContactBook(peerId) {
|
|
|
+ return __awaiter(this, void 0, void 0, function* () {
|
|
|
+ return new contact_book_1.ContactBook(yield this.getAllContacts(peerId));
|
|
|
+ });
|
|
|
+ }
|
|
|
getContactById(peerId, contactId) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
const itemList = yield this.getAllContacts(peerId);
|