v1 wire-contract client implemented as a functional factory.