Context Rule Type
Type of context rule that determines which operations it applies to.
Context rules use pattern matching to determine when signers and policies should be enforced. Three types of context matching are supported:
Default: Matches any operation (fallback rule)
CallContract: Matches invocations to a specific contract address
CreateContract: Matches contract deployments using a specific WASM hash
Example usage:
// Default rule applies to all operations
val defaultRule = ContextRuleType.Default
// Rule for calling a specific token contract
val tokenRule = ContextRuleType.CallContract("CBCD1234...")
// Rule for deploying contracts with a specific WASM hash
val deployRule = ContextRuleType.CreateContract(wasmHashData)Content copied to clipboard