add MsgQuery contract