text: from typing import List
  
  from peas.types.blockchain_format.coin import Coin
  from peas.types.blockchain_format.program import SerializedProgram
  from peas.types.blockchain_format.sized_bytes import bytes32
  from peas.util.condition_tools import (
      conditions_dict_for_solution,
      created_outputs_for_conditions_dict,
  )
  
  
  def additions_for_solution(
      coin_name: bytes32, puzzle_reveal: SerializedProgram, solution: SerializedProgram, max_cost: int
  ) -> List[Coin]:
      """
      Checks the conditions created by CoinSpend and returns the list of all coins created
      """
      err, dic, cost = conditions_dict_for_solution(puzzle_reveal, solution, max_cost)
      if err or dic is None:
          return []
      return created_outputs_for_conditions_dict(dic, coin_name)
  