Slurp.Adapter behaviour (slurp v0.0.10)
Link to this section Summary
Link to this section Types
Link to this type
address()
Specs
address() :: String.t()
Link to this type
block_number()
Specs
block_number() :: non_neg_integer()
Link to this type
call_arguments()
Specs
call_arguments() :: list()
Link to this type
call_params()
Specs
call_params() :: map()
Link to this type
earliest_block_number()
Specs
earliest_block_number() :: String.t()
Link to this type
endpoint()
Specs
endpoint() :: String.t()
Link to this type
event_signature()
Specs
event_signature() :: String.t()
Link to this type
function_signature()
Specs
function_signature() :: String.t()
Link to this type
hashed_event_signature()
Specs
hashed_event_signature() :: String.t()
Link to this type
hex_block_number()
Specs
hex_block_number() :: String.t()
Link to this type
latest_block_number()
Specs
latest_block_number() :: String.t()
Link to this type
log()
Specs
log() :: map()
Link to this type
log_filter()
Specs
log_filter() :: %{ optional(:address) => String.t(), optional(:fromBlock) => hex_block_number() | latest_block_number() | earliest_block_number() | pending_block_number(), optional(:toBlock) => hex_block_number() | latest_block_number() | earliest_block_number() | pending_block_number(), optional(:topics) => [String.t()], optional(:blockhash) => String.t() }
Link to this type
log_subscription()
Specs
log_subscription() :: Slurp.Logs.LogSubscription.t()
Link to this type
pending_block_number()
Specs
pending_block_number() :: String.t()
Link to this type
topic()
Specs
topic() :: String.t()
Link to this section Callbacks
Link to this callback
block_number(endpoint)
Specs
block_number(endpoint()) :: {:ok, block_number()} | {:error, term()}
Link to this callback
call(address, function_signature, call_arguments, call_params, endpoint)
Specs
call( address(), function_signature(), call_arguments(), call_params(), endpoint() ) :: {:ok, term()} | {:error, term()}
Link to this callback
deserialize_log_event(log, log_subscription)
Specs
deserialize_log_event(log(), log_subscription()) :: {:ok, struct()} | {:error, term()}
Link to this callback
get_logs(map, endpoint)
Specs
Link to this callback
hash_event_signature(event_signature)
Specs
hash_event_signature(event_signature()) :: hashed_event_signature()
Link to this callback
log_hashed_event_signature(log)
Specs
log_hashed_event_signature(log()) :: {:ok, hashed_event_signature()} | {:error, term()}
Link to this callback
log_topics(log)
Specs
Link to this section Functions
Link to this function
block_number(blockchain, endpoint)
Link to this function
call(blockchain, address, function_signature, arguments, params, endpoint)
Link to this function
deserialize_log_event(blockchain, log, log_subscription)
Link to this function
get_logs(blockchain, filter, endpoint)
Link to this function
hash_event_signature(blockchain, event_signature)
Link to this function
log_hashed_event_signature(blockchain, log)
Link to this function