Mining on smart contracts