View Source Soroban.RPC.EventFilter (Soroban v0.16.0)

EventFilter struct definition.

Summary

Types

@type args() :: Keyword.t()
@type contract_ids() :: [String.t()] | nil
Link to this type

contract_ids_validation()

View Source
@type contract_ids_validation() :: {:ok, contract_ids()} | error()
@type error() :: {:error, atom()}
@type request_args() :: map() | :error
@type t() :: %Soroban.RPC.EventFilter{
  contract_ids: contract_ids(),
  topics: topics(),
  type: type()
}
@type topics() :: [Soroban.RPC.TopicFilter.t()] | nil
@type topics_validation() :: {:ok, topics()} | error()
@type type() :: [:system | :contract | :diagnostic] | nil
@type type_validation() :: {:ok, type()} | error()

Functions

@spec new(args :: args()) :: t() | error()
@spec to_request_args(t()) :: request_args()