Module models

Source
Expand description

Domain models and data structures for blockchain monitoring.

This module contains all the core data structures used throughout the application:

  • blockchain: Platform-specific implementations for different blockchains (EVM, Stellar)
  • config: Configuration loading and validation
  • core: Core domain models (Monitor, Network, Trigger)
  • security: Security models (Secret)

Structs§

AddressWithSpec
Contract address with optional ABI for decoding transactions and events
EVMBaseReceipt
Base Receipt struct Copied from web3 crate (now deprecated) and slightly modified for alloy compatibility
EVMBaseTransaction
Base Transaction struct Copied from web3 crate (now deprecated) and slightly modified for alloy compatibility
EVMBlock
Wrapper around Base Block that implements additional functionality
EVMContractSpec
Contract specification for an EVM smart contract
EVMMatchArguments
Arguments matched from functions and events
EVMMatchParamEntry
Single decoded parameter from a function or event
EVMMatchParamsMap
Collection of decoded parameters from matched conditions
EVMMonitorMatch
Result of a successful monitor match on an EVM chain
EVMReceiptLog
Base Log struct Copied from web3 crate (now deprecated) and slightly modified for alloy compatibility
EVMTransaction
Wrapper around Base Transaction that implements additional functionality
EVMTransactionReceipt
Wrapper around Base Receipt that implements additional functionality
EventCondition
Condition for matching contract events
FunctionCondition
Condition for matching contract function calls
MatchConditions
Collection of conditions that can trigger a monitor
Monitor
Configuration for monitoring specific blockchain activity.
Network
Configuration for connecting to and interacting with a blockchain network.
NotificationMessage
Notification message fields
ProcessedBlock
Structure to hold block processing results
RpcUrl
RPC endpoint configuration with load balancing weight
SecretString
A string type that automatically zeroizes its contents when dropped.
StellarBlock
Wrapper around LedgerInfo that implements additional functionality
StellarContractFunction
Function definition within a Stellar contract specification
StellarContractInput
Input parameter specification for a Stellar contract function
StellarContractSpec
Raw contract specification for a Stellar smart contract
StellarDecodedParamEntry
Decoded parameter from a Stellar contract function or event
StellarDecodedTransaction
Decoded transaction data including envelope, result, and metadata
StellarEvent
Represents a contract event emitted during transaction execution
StellarFormattedContractSpec
Human-readable contract specification for a Stellar smart contract
StellarLedgerInfo
Information about a Stellar ledger (block)
StellarMatchArguments
Arguments matched from functions and events
StellarMatchParamEntry
Single decoded parameter from a function or event
StellarMatchParamsMap
Collection of decoded parameters from matched conditions
StellarMonitorMatch
Result of a successful monitor match on a Stellar chain
StellarParsedOperationResult
Parsed result of a Stellar contract operation
StellarTransaction
Wrapper around TransactionInfo that provides additional functionality
StellarTransactionInfo
Information about a Stellar transaction
TransactionCondition
Condition for matching transaction states
Trigger
Configuration for actions to take when monitored conditions are met.
TriggerConditions
Conditions that should be met prior to triggering notifications

Enums§

BlockChainType
Supported blockchain platform types
BlockType
Block data from different blockchain platforms
ConfigError
Represents errors that can occur during configuration operations
ContractSpec
Contract spec from different blockchain platforms
MonitorMatch
Monitor match results from different blockchain platforms
ScriptLanguage
The possible languages of the script
SecretValue
A type that represents a secret value that can be sourced from different places and ensures proper zeroization of sensitive data.
SecurityError
Represents errors that can occur during security operations.
TransactionStatus
Possible transaction execution states
TransactionType
Transaction data from different blockchain platforms
TriggerType
Supported trigger action types
TriggerTypeConfig
Type-specific configuration for triggers

Traits§

ConfigLoader
Common interface for loading configuration files