rawPythSourceId function

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

Return the Pyth source ID for external raw-feed inspection.

Implementation

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