Smart Contracts for Service-Level Agreements in Edge-to-Cloud Computing