Libticketto
    Preparing search index...

    Interface EventsCalls

    Calls to interact with events module.

    interface EventsCalls {
        bumpState(id: number): Promise<void>;
        createEvent(event: Omit<Event, EventReadonly>): Promise<number>;
        transferOrganiser(id: number, newOrganiser: string): Promise<void>;
        update(
            id: number,
            event: Partial<Omit<Event, EventReadonly>>,
        ): Promise<void>;
    }
    Index

    Methods

    • Attempts to bump the current state of the event.

      Parameters

      • id: number

        The EventId of the event to be bumped.

      Returns Promise<void>

      In case the state transition is not possible, depending on the rules defined by the .

    • Creates a new event, to be owned by owner

      Parameters

      • event: Omit<Event, EventReadonly>

        The details of the event to be created

      Returns Promise<number>

      The EventId of the newly created event

      In case the event couldn't be created

    • Sets the ownership on another account.

      Parameters

      • id: number
      • newOrganiser: string

      Returns Promise<void>

      An error if the signer of the command is not the owner of the event

    • Updates the information of an event.

      Parameters

      • id: number

        The EventId of the event to be updated

      • event: Partial<Omit<Event, EventReadonly>>

        The details of the event to update

      Returns Promise<void>

      An error in case the signer is not the organiser of the event, or the event couldn't be updated, due to being on an invalid state.