noTradeWindowMs function
MoveCallBuilder
noTradeWindowMs({})
Window before expiry in which live quotes, mints, and live redeems abort.
public for SDK and devInspect reads: a client that cannot see this value can
only learn the window closed by decoding ETradeWindowClosed from a failed
quote.
Implementation
MoveCallBuilder noTradeWindowMs(
{dynamic arguments, String? package, Map<String, dynamic>? config}) {
final packageAddress = package ??
(config?['predictPackageId'] as String?) ??
'@local-pkg/deepbook_predict';
return (tx) => tx.moveCall(
'$packageAddress::protocol_config::no_trade_window_ms',
arguments: normalizeMoveArguments(
tx,
withConfigDefaults(
arguments, config, const {'config': 'protocolConfig'}),
[null],
['config']),
);
}