Documentation
¶
Index ¶
Constants ¶
View Source
const ( TxTypePlay = "play" TxTypeManageEntity = "manage_entity" TxTypeValidatorRegistration = "validator_registration" TxTypeValidatorDeregistration = "validator_deregistration" TxTypeValidatorRegistrationLegacy = "validator_registration_legacy" TxTypeSlaRollup = "sla_rollup" TxTypeValidatorMisbehaviorDereg = "validator_misbehavior_deregistration" TxTypeStorageProof = "storage_proof" TxTypeStorageProofVerification = "storage_proof_verification" TxTypeRelease = "release" )
Transaction type constants. Correspond to proto SignedTransaction union members.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor interface {
// TxType returns the transaction type string (e.g. "play", "manage_entity").
TxType() string
// Process handles the transaction and returns InsertTransactionParams for etl_transactions.
Process(ctx context.Context, tx *corev1.SignedTransaction, txCtx *TxContext, q *db.Queries) (*Result, error)
}
Processor processes a specific transaction type.
func DefaultRegistry ¶
func DefaultRegistry() []Processor
DefaultRegistry returns the default set of processors.
type Result ¶
type Result struct {
InsertTx db.InsertTransactionParams
}
Result is returned by processors. InsertTx is always set; the processor may perform additional entity inserts via the db.
Click to show internal directories.
Click to hide internal directories.