Architecture of the Endgame Smart Contracts