Moved block contract and transactions to chain package