#3928 remove staking references from types package
#1528 define local module interfaces instead of /types 