github.com/storacha/go-ucanto@v0.7.2/core/receipt/datamodel/receipt.ipldsch (about)

     1  # Represents a receipt of an invocation as per IPLD schema in
     2  # ucan/invocation@0.2 spec.
     3  #
     4  # @see https://github.com/ucan-wg/invocation/blob/v0.2/README.md#82-receipt
     5  type Receipt struct {
     6    ocm Outcome
     7    sig Bytes
     8  }
     9  
    10  type Outcome struct {
    11    ran  Link
    12    out  Result
    13    fx   Effects
    14    meta {String:Any}
    15    iss  optional String
    16    prf  [Link]
    17  }
    18  
    19  # type DID = Bytes
    20  
    21  # type Result union {
    22  #   | any    "ok"    # Success
    23  #   | any    "error" # Error
    24  # } representation kinded
    25  
    26  type Effects struct {
    27    fork [Link]
    28    join optional Link
    29  }