toScVal

abstract fun toScVal(): SCValXdr

Encodes these policy parameters as the SCVal map expected by the policy contract's install entry point.

Map keys are emitted in the order the contract requires. Use the result as the installParams argument of OZPolicyManager.addPolicy or as a value in OZContextRuleManager.addContextRule's policies map.

Return

SCVal map with installation parameters

Throws

if the parameters are invalid