ActionContext: {
    events: EventStore;
    factory: EventFactory;
    publish: PublishMethod;
    self: string;
}

The context that is passed to actions for them to use to preform actions

Type declaration

  • events: EventStore

    The event store to load events from

  • factory: EventFactory

    The event factory used to build and modify events

  • publish: PublishMethod

    A method used to publish final events to relays

  • self: string

    The pubkey of the signer in the event factory