UNPKG

@cenoa/waas-js-sdk

Version:

Official Cenoa Wallet as a Service SDK

15 lines (14 loc) 608 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.patchReinvest = exports.getSignCredentialsForReinvest = void 0; function getSignCredentialsForReinvest(instance) { return instance.post('/partner-reinvest').then(resp => resp.data); } exports.getSignCredentialsForReinvest = getSignCredentialsForReinvest; function patchReinvest(instance, payload) { const { id, signedTransactionsPayload } = payload; return instance .patch(`/partner-reinvests/${id}`, signedTransactionsPayload) .then(resp => resp.data); } exports.patchReinvest = patchReinvest;