コンテンツにスキップ

CreateBuyListPoliciesParams

このコンテンツはまだ日本語訳がありません。

Defined in: src/policy/buy-list.ts:40

Parameters for createBuyListPolicies.

Properties

jpycAddress

readonly jpycAddress: `0x${string}`

Defined in: src/policy/buy-list.ts:42

JPYC contract address on the target chain.


maxPerTransfer

readonly maxPerTransfer: bigint

Defined in: src/policy/buy-list.ts:58

Maximum JPYC (raw units) per single payment. Must be positive.


merchants

readonly merchants: readonly `0x${string}`[]

Defined in: src/policy/buy-list.ts:56

The buy-list’s resolved merchant recipient addresses — the allowlist the session key may pay. Required and non-empty (a buy-list always targets specific merchants); checksum-normalized + de-duplicated.


settlementAddress

readonly settlementAddress: `0x${string}`

Defined in: src/policy/buy-list.ts:50

The Settlement contract on the target chain — pass getSettlementAddress(chainId).

It MUST be the address settleOrder pays through (it resolves the same table): the key’s approval is scoped to this exact spender, so a key built with any other address cannot pay — the payment is refused on chain with CallViolatesParamRule().


validAfter?

readonly optional validAfter?: number

Defined in: src/policy/buy-list.ts:65

Optional schedule-window start (unix seconds); the key is invalid before this. Defaults to 0 (valid immediately). Must be < validUntil.


validUntil

readonly validUntil: number

Defined in: src/policy/buy-list.ts:60

Schedule-window end (unix seconds); the key is invalid after this. Must be a positive integer.