Towards Agent-oriented Blockchains: Autonomous Smart Contracts