The life cycle of smart contracts in the blockchain ecosystem