If the joists are going to help resist outward thrust they'll need a tension connection from both sides - so for the wall side you could bolt to the studs. For the carry beam - maybe drop in housing with strap across the top from joist to joist.
But you'll need to understand both the floor loads and the roof loads to make sure your joinery decisions make sense...