sla-escrow-api 0.2.7

SLA-Escrow: Service Level Agreement Enforcer for AI Agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::EscrowAccount;
use steel::*;

/// Transient account that exists only while an authority transfer proposal is pending.
/// Created by `UpdateAuthority` (propose), consumed by `AcceptAuthority` or
/// `CancelAuthorityProposal`.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct AuthorityTransfer {
    pub proposed_authority: Pubkey, // 32 bytes — key that must sign AcceptAuthority
    pub proposed_at: i64,           // 8 bytes — timestamp; acceptance gated by delay
                                    // Total: 40 bytes (8-byte aligned)
}

account!(EscrowAccount, AuthorityTransfer);