event from tools
This commit is contained in:
parent
441f47d50e
commit
cfe6aa200b
1 changed files with 7 additions and 4 deletions
|
|
@ -1,11 +1,14 @@
|
||||||
import { NostrEvent } from "@shocknet/clink-sdk";
|
|
||||||
import { User } from "./storage/entity/User";
|
|
||||||
import { ManagementGrant } from "./storage/entity/ManagementGrant";
|
|
||||||
import { validateEvent } from "nostr-tools";
|
|
||||||
import { getRepository } from "typeorm";
|
import { getRepository } from "typeorm";
|
||||||
|
import { User } from "./storage/entity/User";
|
||||||
import { UserOffer } from "./storage/entity/UserOffer";
|
import { UserOffer } from "./storage/entity/UserOffer";
|
||||||
|
import { validateEvent, type Event as BaseNostrEvent } from "nostr-tools";
|
||||||
|
import { ManagementGrant } from "./storage/entity/ManagementGrant";
|
||||||
import { NostrSend, NostrSettings } from "./nostr/handler";
|
import { NostrSend, NostrSettings } from "./nostr/handler";
|
||||||
|
|
||||||
|
type NostrEvent = BaseNostrEvent & {
|
||||||
|
appId: string;
|
||||||
|
};
|
||||||
|
|
||||||
export class ManagementManager {
|
export class ManagementManager {
|
||||||
private nostrSend: NostrSend;
|
private nostrSend: NostrSend;
|
||||||
private settings: NostrSettings;
|
private settings: NostrSettings;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue