Explorer

definy.event-inner-cbor

description
The inner event of a SignedEvent: {account_id, time: tag1(seconds), content} (docs/cbor.md)
type
Fn(account_id_bytes: List<Number>, time_seconds: Number, content: @core.event-content) -> @cbor.item
expression
fn(account_id_bytes$0, time_seconds$1, content$2) =>
  #map<@cbor.item>([
    {key: #text<@cbor.item>("account_id"), value: #bytes<@cbor.item>($0)},
    {
      key: #text<@cbor.item>("time"),
      value: #tagged<@cbor.item>({tag: 1, value: #integer<@cbor.item>($1)})
    },
    {
      key: #text<@cbor.item>("content"),
      value: @definy.value-to-cbor(value: @core.event-content-to-value(value: $2))
    }
  ])
visibility
public
definy.event-inner-cbor (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: hvEhm9P-8957emAAKkQaWx9cNRUDBT9YwBeWvSMzTPk
content hash: -8u0ugJ38KBe6Jjm4--ZEPT7vxa6S0RkX-4eBpM1Vks