This is a refactor of the codebase to use a more memory-efficient representation of notes. It should also be much faster at decoding since we're using a custom C json parser now. Changelog-Changed: Improved memory usage and performance when processing events
27 lines
451 B
Swift
27 lines
451 B
Swift
//
|
|
// NostrKind.swift
|
|
// damus
|
|
//
|
|
// Created by William Casarin on 2022-04-27.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
|
|
enum NostrKind: UInt32, Codable {
|
|
case metadata = 0
|
|
case text = 1
|
|
case contacts = 3
|
|
case dm = 4
|
|
case delete = 5
|
|
case boost = 6
|
|
case like = 7
|
|
case chat = 42
|
|
case list = 30000
|
|
case longform = 30023
|
|
case zap = 9735
|
|
case zap_request = 9734
|
|
case nwc_request = 23194
|
|
case nwc_response = 23195
|
|
}
|