SpendingPolicy
このコンテンツはまだ日本語訳がありません。
Defined in: src/policy/spending-policy.ts:43
Policy-as-data evaluated for every PaymentIntent. Deny-closed
throughout: a token not listed in perToken is rejected, and
recipientAllowlist is required — "any" (unrestricted) is a conscious,
greppable choice, never a silent default.
Properties
perToken
readonlyperToken: readonlyTokenLimit[]
Defined in: src/policy/spending-policy.ts:47
recipientAllowlist
readonlyrecipientAllowlist: readonly`0x${string}`[] |"any"
Defined in: src/policy/spending-policy.ts:58
Recipient restriction (required — no silent allow-open default):
"any" = unrestricted, [] = deny-all, [...] = allowlist. Making
"any" explicit keeps the policy deny-closed like perToken.
The on-chain createJpycDailyLimitPolicies takes the same
Address[] | "any" shape, with two on-chain-forced differences: it is
optional (omitted = "any"), and [] throws there (an on-chain allowlist
cannot encode deny-all).
revoked
readonlyrevoked:boolean
Defined in: src/policy/spending-policy.ts:59
session
readonlysession:object
Defined in: src/policy/spending-policy.ts:46
Session id + expiry (unix seconds). An authorization may not outlive the session.
id
readonlyid:string
notAfter
readonlynotAfter:bigint
version
readonlyversion:"1"
Defined in: src/policy/spending-policy.ts:44