Skip to content

new response format for /contracts/searchForever #4072

Closed
@S11001001

Description

Change /contracts/searchForever format from:

{
  created: [C1, C2],
  archived: [A1, A2]
}

to

[
  {created: C1},
  {created: C2},
  {archived: A1},
  {archived: A2},
  {error: E1}
]

I'd prefer if the encoding is the same for both endpoints. Since the /commands/exercise endpoint does not work with the first format, we need to use the second in both places. It would be nice if could keep the order of the events we don't filter out during consolidation for the /contracts/searchForever endpoint, but I don't consider it a hard requirement.

Originally posted by @hurryabit in #3936

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions