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
  • 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
ChainConfiguration
Chain-specific configuration
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
EVMMonitorConfig
EVM-specific configuration
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
MidnightBaseTransaction
Represents a Midnight transaction
MidnightBlock
Wrapper around RpcBlock that implements additional functionality
MidnightBlockDigest
Block digest containing logs
MidnightBlockHeader
Represents a Midnight block header
MidnightCallDetails
Details of a contract call.
MidnightClaimMintDetails
Details of a mint claim operation.
MidnightDeploymentDetails
Details of a contract deployment.
MidnightEvent
Wrapper around EventType that provides additional functionality.
MidnightMaintainDetails
Details of a contract maintenance operation.
MidnightMatchArguments
Arguments matched from functions and events
MidnightMatchParamEntry
Single decoded parameter from a function or event
MidnightMatchParamsMap
Collection of decoded parameters from matched conditions
MidnightMonitorConfig
Midnight-specific configuration
MidnightMonitorMatch
Result of a successful monitor match on an Midnight chain
MidnightPayoutDetails
Details of a payout operation.
MidnightRpcBlock
Represents a Midnight block
MidnightTopics
Contains a list of topics associated with an event.
MidnightTransaction
Wrapper around MidnightRpcTransaction that provides additional functionality
MidnightTxAppliedDetails
Details of a transaction that has been applied to the blockchain.
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
StellarContractEvent
Event definition within a Stellar contract specification
StellarContractEventParam
Event parameter specification for a Stellar contract event
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
StellarMonitorConfig
Stellar-specific configuration
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
MidnightEventType
Enum representing different types of events that can occur in the Midnight blockchain.
MidnightOperation
Represents a Midnight transaction operations
MidnightPhase
Represents the phase of a blockchain event.
MidnightRpcTransactionEnum
Represents a Midnight RPC transaction Enum
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.
StellarEventParamLocation
Event parameter location (indexed or data)
TransactionStatus
Possible transaction execution states
TransactionType
Transaction data from different blockchain platforms
TriggerType
Supported trigger action types
TriggerTypeConfig
Type-specific configuration for triggers

Constants§

SCRIPT_LANGUAGE_EXTENSIONS
Static mapping of script languages to their file extensions

Traits§

ConfigLoader
Common interface for loading configuration files