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
BlockRecoveryConfig
Configuration for missed block recovery job.
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.
SolanaBlock
Wrapper around ConfirmedBlock that implements additional functionality
SolanaConfirmedBlock
A confirmed block from the Solana blockchain.
SolanaContractEvent
Event definition within a Solana program specification
SolanaContractEventParam
Event parameter specification
SolanaContractFunction
Function (instruction) definition within a Solana program specification
SolanaContractInput
Input parameter specification for a Solana program instruction
SolanaContractSpec
Raw contract specification for a Solana program (IDL - Interface Definition Language)
SolanaDecodedParamEntry
Decoded parameter from a Solana instruction or log
SolanaFormattedContractSpec
Human-readable contract specification for a Solana program
SolanaIdlAccount
Account definition in the IDL
SolanaIdlEnumVariant
An enum variant
SolanaIdlError
Error definition
SolanaIdlEvent
Event definition in the IDL
SolanaIdlEventField
A field in an event
SolanaIdlField
A field definition (used for instruction args and type fields)
SolanaIdlInstruction
An instruction definition in the IDL
SolanaIdlInstructionAccount
A single account in an instruction
SolanaIdlInstructionAccounts
A group of accounts in an instruction
SolanaIdlMetadata
Program metadata
SolanaIdlPda
PDA (Program Derived Address) definition
SolanaIdlTypeDef
Custom type definition
SolanaInstruction
A single instruction in a Solana transaction
SolanaMatchArguments
Arguments matched from functions (instructions) and events (logs)
SolanaMatchParamEntry
Single decoded parameter from a function or event
SolanaMatchParamsMap
Collection of decoded parameters from matched conditions
SolanaMonitorConfig
Solana-specific monitor configuration
SolanaMonitorMatch
Result of a successful monitor match on a Solana chain
SolanaParsedInstruction
Parsed instruction data for known programs
SolanaParsedInstructionResult
Parsed result of a Solana program instruction
SolanaTransaction
Wrapper around TransactionInfo that provides additional functionality
SolanaTransactionInfo
Information about a Solana transaction
SolanaTransactionMessage
The transaction message containing accounts and instructions
SolanaTransactionMeta
Transaction metadata including status and logs
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.
SolanaIdlAccountItem
An account item in an instruction (can be a single account or nested accounts)
SolanaIdlSeed
A seed used in PDA derivation
SolanaIdlType
Type definitions in the IDL
SolanaIdlTypeComplex
Complex type definition
SolanaIdlTypeDefTy
The actual type definition (struct or enum)
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
WebhookPayloadMode
Payload mode for webhook triggers

Constants§

SCRIPT_LANGUAGE_EXTENSIONS
Static mapping of script languages to their file extensions

Traits§

ConfigLoader
Common interface for loading configuration files