upPrice function
MoveCallBuilder
upPrice({})
Return the current UP digital probability for a typed strike. Public PTB and
devInspect reads can compose it with a transaction-local Pricer.
Implementation
MoveCallBuilder upPrice(
{required dynamic arguments,
String? package,
Map<String, dynamic>? config}) {
final packageAddress = package ??
(config?['predictPackageId'] as String?) ??
'@local-pkg/deepbook_predict';
return (tx) => tx.moveCall(
'$packageAddress::pricing::up_price',
arguments: normalizeMoveArguments(
tx, arguments, [null, null], ['pricer', 'strike']),
);
}