improve relay connection

This commit is contained in:
2023-11-16 07:59:29 +07:00
parent 875225591a
commit b41ec353c6
5 changed files with 27 additions and 6 deletions

19
src/utils/types.d.ts vendored
View File

@@ -139,3 +139,22 @@ export interface NDKCacheEventTag {
value: string;
tagValue: string;
}
export interface NIP11 {
name: string;
description: string;
pubkey: string;
contact: string;
supported_nips: number[];
software: string;
version: string;
limitation: {
[key: string]: string | number | boolean;
};
relay_countries: string[];
language_tags: string[];
tags: string[];
posting_policy: string;
payments_url: string;
icon: string[];
}