Add zap utils

This commit is contained in:
Jon Staab
2024-03-25 16:52:49 -07:00
parent eb9c778a66
commit 0b5a4e8511
13 changed files with 307 additions and 19 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ import {Tags} from './Tags'
import {addressFromEvent, encodeAddress} from './Address'
import {isEphemeralKind, isReplaceableKind, isPlainReplaceableKind, isParameterizedReplaceableKind} from './Kinds'
export type Rumor = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at' | 'pubkey' | 'id'>
export type Rumor = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at' | 'pubkey' | 'id'> & {
wrap?: Event
}
export type CreateEventOpts = {
content?: string