icdevs / ICEventsWG

WG for developing an Event System(pub/sub) on the Internet Computer
3 stars 3 forks source link

Missing Query Functions for Orchestrator #62

Closed skilesare closed 1 day ago

skilesare commented 1 month ago

Issue: Query data COULD be deduced via the transaction log if you use icrc92, but if not then the spec may need to dictate these(maybe we want to dictate them anyway).

Missing: icrc72_get_subscription_subscribers icrc72_get_subscription_publishers icrc72_get_subscription_broadcasters icrc72_get_publication_subscribers icrc72_get_broadcaster_publishers icrc72_get_broadcaster_subscribers icrc72_get_broadcaster_relays icrc72_get_subscriber_broadcaster icrc72_get_publisher_broadcasters

skilesare commented 1 month ago

Options:

  1. Do it so users can get complete information.
  2. Derive it from a transaction log. ICRC 92.
  3. Remove these queries to a different iCRC X That is not required for 72.
  4. Is it condensable?

publishers publications broadcasters subscribers subscriptions

Nullable filters: (variants)

ByPublisher: Principal

BySubscriber: Principal;

ByPublication: PublicationIdentifier

BySubscripton: SubscriptionIdentifier

ByBroadcaster: Principal

Next Steps: Draft the condensed version. (Austin will implement and see how it goes)

skilesare commented 1 day ago

See OrchestrationFilter types