definy.read-account-names
- description
- The names in the newest 500 create_account events, newest first (the name of an account is the one in its newest create_account)
- type
Fn(then: Fn(names: List<@definy.account-name-entry>) -> @definy.service-io) -> @definy.service-io
- expression
fn(then$0) => @definy.store-read-events-page-of( event_type: #some("create_account"), limit: 500, offset: 0, bytes: true, then: fn(events$1) => $0( names: @core.list-map( T: @definy.stored-event, U: @definy.account-name-entry, f: fn(item$2) => { event_hash: $2.event_hash, account_id: $2.account_id, name: @definy.account-name-of-event(event: $2) }, xs: $1 ) ) )
- visibility
- public
definy.read-account-names (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: YlVWzHaJMwm-zs4uekiHyXmEzsl0nvQD6uxNTP_RVRg content hash: vaUK6cqdJiRYoiknfZDNoO2dLinpUsKprvSeAMxL4ns