mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
partial nip57 support.
This commit is contained in:
14
event.ts
14
event.ts
@@ -25,20 +25,22 @@ export enum Kind {
|
||||
Article = 30023
|
||||
}
|
||||
|
||||
export type Event = {
|
||||
id?: string
|
||||
sig?: string
|
||||
export type EventTemplate = {
|
||||
kind: Kind
|
||||
tags: string[][]
|
||||
pubkey: string
|
||||
content: string
|
||||
created_at: number
|
||||
}
|
||||
|
||||
export function getBlankEvent(): Event {
|
||||
export type Event = EventTemplate & {
|
||||
pubkey: string
|
||||
id: string
|
||||
sig: string
|
||||
}
|
||||
|
||||
export function getBlankEvent(): EventTemplate {
|
||||
return {
|
||||
kind: 255,
|
||||
pubkey: '',
|
||||
content: '',
|
||||
tags: [],
|
||||
created_at: 0
|
||||
|
||||
Reference in New Issue
Block a user