CreateJpycDailyLimitPoliciesParams
Defined in: src/policy/daily-limit.ts:31
Parameters for createJpycDailyLimitPolicies.
Properties
callPolicyVersion?
readonlyoptionalcallPolicyVersion?:CallPolicyVersion
Defined in: src/policy/daily-limit.ts:42
ZeroDev callPolicy on-chain version. Defaults to V0_0_4 (latest at the time of writing). Bump only after auditing the new version’s semantics.
jpycAddress
readonlyjpycAddress:`0x${string}`
Defined in: src/policy/daily-limit.ts:33
JPYC contract address on the target chain.
maxPerTransfer
readonlymaxPerTransfer:bigint
Defined in: src/policy/daily-limit.ts:35
Maximum JPYC (in raw units) the session key may move in one transfer.
maxTransfersPerDay
readonlymaxTransfersPerDay:number
Defined in: src/policy/daily-limit.ts:37
Maximum number of transfer userOps the session key may submit per day.
recipientAllowlist?
readonlyoptionalrecipientAllowlist?: readonly`0x${string}`[] |"any"
Defined in: src/policy/daily-limit.ts:65
Recipient restriction. An address list restricts the session key to
transfer JPYC only to those recipients (enforced on-chain via the
callPolicy to argument, condition ONE_OF); every other recipient is
rejected before any funds move. "any" (or omitting the field) leaves the
recipient unrestricted.
The type mirrors the off-chain SpendingPolicy.recipientAllowlist
(Address[] | "any") so a buy-list’s resolved allowlist can feed both the
off-chain and on-chain policy paths unchanged. Two deliberate differences
from that sibling, forced by on-chain semantics:
- it is optional here (omitted =
"any") for backward compatibility — the pre-allowlist policy left the recipient unrestricted; - an empty array
[]throws (rather than meaning deny-all as it does off-chain) — an on-chain allowlist cannot encode “match nothing”; omit it or pass"any"for unrestricted, or list ≥1 recipient.
Entries are checksum-normalized and de-duplicated (shared with the off-chain
path via normalizeRecipientAllowlist). An address list requires
callPolicyVersion ≥ V0_0_2 (the ONE_OF condition is unsupported on
V0_0_1); the default V0_0_4 is fine.