a method to create an instance of given wallet class
type ReturnType = (status: ConnectionStatus) => void;