UNPKG

machinomy

Version:

Micropayments powered by Ethereum

18 lines 596 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const payment_1 = require("../payment"); const namespaced_1 = require("../util/namespaced"); class AbstractPaymentsDatabase { constructor(engine, namespace) { this.kind = namespaced_1.namespaced(namespace, 'payment'); this.engine = engine; } inflatePayment(json) { if (!json) { return null; } return payment_1.PaymentSerde.instance.deserialize(json); } } exports.default = AbstractPaymentsDatabase; //# sourceMappingURL=AbstractPaymentsDatabase.js.map