OZParsedContextRule
public struct OZParsedContextRule : Sendable, Hashable
Parsed representation of a context rule sourced from on-chain data.
Carries every field describing a context rule: identifier, type, signers,
policies, and optional expiration. Constructed by the on-chain context-rule
parser; consumed by collectUniqueSignersFromRules(rules:) and
by higher-level managers that decide which signers and policies apply to an
operation.
-
Unique identifier of this context rule.
Declaration
Swift
public let id: UInt32 -
Type of operations this rule applies to.
Declaration
Swift
public let contextType: OZContextRuleType -
Human-readable name for the rule.
Declaration
Swift
public let name: String -
Signers who can authorize operations matching this context.
Declaration
Swift
public let signers: [any OZSmartAccountSigner] -
Positionally-aligned signer IDs corresponding to
signers.Declaration
Swift
public let signerIds: [UInt32] -
Policy contract addresses that constrain operations matching this rule.
Declaration
Swift
public let policies: [String] -
Positionally-aligned policy IDs corresponding to
policies.Declaration
Swift
public let policyIds: [UInt32] -
Optional ledger number when this rule expires (
nil= never expires).Declaration
Swift
public let validUntil: UInt32? -
Undocumented
Declaration
Swift
public init( id: UInt32, contextType: OZContextRuleType, name: String, signers: [any OZSmartAccountSigner], signerIds: [UInt32], policies: [String], policyIds: [UInt32], validUntil: UInt32? ) -
Declaration
Swift
public static func == (lhs: OZParsedContextRule, rhs: OZParsedContextRule) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub
Install in Dash