Resource-Aware Session Types for Digital Contracts