SpendPolicy
data class SpendPolicy(val caps: List<Cap> = emptyList(), val allowedStrategies: Set<KClass<out FeeStrategy>> = setOf(
FeeStrategy.DomainPays::class,
), val requireSponsorAllowList: Boolean = false, val sponsorAllowList: Set<String> = emptySet())
The set of rules a domain treasury evaluates at reserve time. Exhausting any cap raises org.trustweave.anchor.exceptions.TreasuryException.CapExceeded before the operation reaches the SPI — never silently degraded.
Types
Properties
Link copied to clipboard
the subset of FeeStrategy subclasses the domain accepts; absence rejects the strategy
Link copied to clipboard
when true, a sponsored strategy is only accepted if the sponsor DID appears in sponsorAllowList
Link copied to clipboard
DIDs permitted to sponsor this domain