mintPoolValuationCap function

MoveCallBuilder mintPoolValuationCap({
  1. dynamic arguments,
  2. String? package,
  3. Map<String, dynamic>? config,
})

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']),
      );
}