strikeFromTick function
MoveCallBuilder
strikeFromTick({})
Convert a boundary tick to its raw strike, including the open-end sentinels.
Non-sentinel ticks multiply directly by tick_size; public PTB and devInspect
callers are responsible for supplying the intended market domain.
Implementation
MoveCallBuilder strikeFromTick(
{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::range_codec::strike_from_tick',
arguments: normalizeMoveArguments(
tx, arguments, ['u64', 'u64'], ['tick', 'tickSize']),
);
}