Energy Trading Platforms for Isolated and Inter-connected Microgrids Utilizing Adapted Blockchain