Creates a new Promise.
A callback used to initialize the promise. This callback is passed two arguments: a resolve callback used to resolve the promise with a value or the result of another promise, and a reject callback used to reject the promise with a provided reason or error.
Protected_Shared mutable reference to the signer, propagated through all chain links
Readonly[toStatic Readonly[species]ProtectedsignerThe signer used to sign the event (reads from shared ref)
Attaches a callback for only the rejection of the Promise.
A Promise for the completion of the callback.
ProtectedchainCustom .then method that wraps the resulting promise in a new event factory
Sets the NIP-36 content-warning tag for the event
Set the event created_at timestamp in seconds. if no value is provided, the current unix timestamp will be used
Sets the encrypted content of the event
Optionaloverride: EncryptionMethodAttaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: (() => void) | nullThe callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Modifies the events public and optional hidden tags
Signs the event using a signer interface and returns a Promise
Stamps the pubkey onto the event template
Strips the pubkey, sig, and id from the event
Attaches callbacks for the resolution and/or rejection of the Promise.
Optionalonfulfilled: ((value: DeleteTemplate) => TResult1 | PromiseLike<TResult1>) | nullThe callback to execute when the Promise is resolved.
Optionalonrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | nullThe callback to execute when the Promise is rejected.
A Promise for the completion of which ever callback is executed.
StaticallCreates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
An array of Promises.
A new Promise.
StaticallCreates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
An array of Promises.
A new Promise.
StaticanyThe any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
An array or iterable of Promises.
A new Promise.
The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
A new Promise.
StaticfromCreate a new event factory from a nostr event
StaticfromCreates a new delete factory from a list of event ids
The list of event ids to delete
The reason for the deletion
A new delete factory
StaticfromCreate a new event factory from a kind
StaticraceStaticrejectCreates a new rejected promise for the provided reason.
Optionalreason: anyThe reason the promise was rejected.
A new rejected Promise.
StaticresolveCreates a new resolved promise.
A resolved promise.
A factory class for building delete events