mintPoolValuationCap function
MoveCallBuilder
mintPoolValuationCap({})
Mint a version-gated PoolValuationCap with authority to start the full-pool
valuation.
Implementation
MoveCallBuilder mintPoolValuationCap(
{dynamic arguments, String? package, Map<String, dynamic>? config}) {
final packageAddress = package ??
(config?['predictPackageId'] as String?) ??
'@local-pkg/deepbook_predict';
return (tx) => tx.moveCall(
'$packageAddress::registry::mint_pool_valuation_cap',
arguments: normalizeMoveArguments(
tx,
withConfigDefaults(arguments, config,
const {'registry': 'registry', 'config': 'protocolConfig'}),
[null, null, null],
['registry', 'AdminCap', 'config']),
);
}