ripple-lib promise wrapper