bloqade.lanes.validation.address.get_validation
← Module overview
function
source
functionget_validation¶source
bloqade.lanes.validation.address.get_validation
def get_validation(arch_spec: ArchSpec) -> type[ValidationPass]Build an address-validation pass bound to arch_spec.
kirin’s ValidationSuite instantiates each pass with no
arguments (pass_cls()), so a pass cannot take arch_spec as a
constructor argument. We close over arch_spec and stash it on a
ClassVar, yielding a no-arg-constructible pass class that the
suite can drive directly.
Parameters
| Name | Type | Description |
|---|---|---|
arch_spec | ArchSpec |
Returns
type[ValidationPass]