Function getDefaultNetContext
- getDefaultNetContext(
overrides?: Partial<NetContext>,
): {
authMode: AuthMode;
getExecutor: (relays: string[]) => Executor;
isDeleted: (url: string, event: TrustedEvent) => boolean;
isValid: (url: string, event: TrustedEvent) => boolean;
matchFilters: (
url: string,
filters: Filter[],
event: TrustedEvent,
) => boolean;
onEvent: (url: string, event: TrustedEvent) => void;
optimizeSubscriptions: (subs: Subscription[]) => RelaysAndFilters[];
pool: Pool;
signEvent: (event: StampedEvent) => Promise<any>;
} Returns {
authMode: AuthMode;
getExecutor: (relays: string[]) => Executor;
isDeleted: (url: string, event: TrustedEvent) => boolean;
isValid: (url: string, event: TrustedEvent) => boolean;
matchFilters: (
url: string,
filters: Filter[],
event: TrustedEvent,
) => boolean;
onEvent: (url: string, event: TrustedEvent) => void;
optimizeSubscriptions: (subs: Subscription[]) => RelaysAndFilters[];
pool: Pool;
signEvent: (event: StampedEvent) => Promise<any>;
}