Towards Agent-Oriented Blockchains: Autonomous Smart Contracts