Policy Template Library

Deploy Proven Security Models in Seconds

Don't reinvent the wheel. Use our audited, pre-built policy templates to instantly apply rigorous security logic to your OCS Smart Accounts.

Retail Standard

The default protection package for individual users. Includes an address lock for whitelisted recipients and a daily velocity limit to prevent wallet draining.

apply-retail-standard.ts
await ocsClient.policy.applyTemplate(Templates.RETAIL_STANDARD, {
    dailyLimit: parseEther('5.0'), // Max 5 ETH per day
    whitelist: ['0xColdWallet...', '0xExchangeDeposit...'],
    requireHardwareForNewAddress: true
});

Family Office & Team

Enforces separation of duties. Transactions above a specific threshold require multiple approvals (Multi-Sig) before the Sequencer will execute them.

apply-team-governance.ts
await ocsClient.policy.applyTemplate(Templates.TEAM_GOVERNANCE, {
    threshold: 2, // 2-of-3 Signers Required
    owners: ['0xCEO...', '0xCFO...', '0xOps...'],
    highValueThreshold: parseEther('50.0'), // Trigger Multi-Sig only above 50 ETH
    autoRejectSanctioned: true // Enable PGTAIL Sanctions Check
});

DAO Treasury Guard

Strict controls for decentralized organizations. Enforces a mandatory time-lock delay on all large transfers, giving the community time to veto malicious proposals.

apply-dao-guard.ts
await ocsClient.policy.applyTemplate(Templates.DAO_TREASURY, {
    timelockDuration: 86400, // 24 Hour Delay for execution
    vetoCouncil: '0xSecurityCouncilMultisig...',
    spendingLimit: parseEther('1000.0'),
    allowedContracts: ['0xAavePool...', '0xUniswapRouter...']
});

Want to build a custom policy module?

View SDK Documentation