pythSourceId function

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

Returns the immutable Pyth source ID for external feed inspection.

Implementation

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