After cutting you tofu into squares, allow them to drain on paper towels. Applying a little pressure will help push out some of the water.
Heat the oil in your wok and fry them in batches until golden, turning them during cooking. Allow them to drain on paper towels and continue with the meal.
Pour off a majority of the oil, leaving maybe 2-3 Tbsp in the wok. Stir fry the chili bean paste, pickles, chilies and black beans over medium heat until fragrant. Then add the garlic, ginger and white scallion bits and cook. Be careful not to burn the garlic.
Add in the stock and fried tofu and bring up to a boil. Then add the green scallion bits, sugar and soy sauce. Allow it to thicken slightly and then use your potato starch mixture to thicken. Just add a bit at a time.
Serve immediately with brown or white Jasmine rice.