spot function

MoveCallBuilder spot({
  1. required dynamic arguments,
  2. String? package,
})

Returns the latest canonical spot observation, or none if none has landed.

Implementation

MoveCallBuilder spot({required dynamic arguments, String? package}) {
  final packageAddress = package ?? '@local-pkg/propbook';
  return (tx) => tx.moveCall(
        '$packageAddress::block_scholes_store::spot',
        arguments: normalizeMoveArguments(tx, arguments, [null], ['store']),
      );
}