toScVal

open override fun toScVal(): SCValXdr

Converts the spending limit policy parameters to an ScVal map.

Map structure: { "period_ledgers": U32(periodLedgers), "spending_limit": I128(spendingLimit) } Keys are in alphabetical order (required for contract compatibility).

Return

SCVal map with installation parameters

Throws

if spending limit or period is invalid