In-memory implementation of GossipArtifactSource for transaction artifacts, primarily for testing.
Type parameters
- A
-
the artifact payload type
- F
-
the effect type
Attributes
- Companion
- object
- Source
- InMemoryTxArtifacts.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Appends a new transaction payload to the in-memory source.
Appends a new transaction payload to the in-memory source.
Value parameters
- chainId
-
the chain to append to
- payload
-
the artifact payload
- ts
-
the event timestamp
Attributes
- Returns
-
the generated gossip event
- Source
- InMemoryTxArtifacts.scala
Reads available events after the given cursor position.
Reads available events after the given cursor position.
Value parameters
- chainId
-
the chain to read from
- cursor
-
optional cursor; None starts from the beginning
- topic
-
the gossip topic
Attributes
- Returns
-
events after the cursor, or a rejection on error
- Definition Classes
- Source
- InMemoryTxArtifacts.scala
Reads events by their stable artifact identifiers.
Reads events by their stable artifact identifiers.
Value parameters
- chainId
-
the chain to read from
- ids
-
the artifact identifiers to look up
- topic
-
the gossip topic
Attributes
- Returns
-
the matching available events
- Definition Classes
- Source
- InMemoryTxArtifacts.scala
Returns all stored events for the given chain.
Returns all stored events for the given chain.
Value parameters
- chainId
-
the chain to snapshot
Attributes
- Returns
-
all stored events for the chain
- Source
- InMemoryTxArtifacts.scala