"use strict";
/* eslint-disable-next-line no-unused-vars */
function __export(m) {
/* eslint-disable-next-line no-prototype-builtins */
    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable-next-line no-unused-vars */
var jtv = require('@mojotech/json-type-validation');
/* eslint-disable-next-line no-unused-vars */
var damlTypes = require('@daml/types');
/* eslint-disable-next-line no-unused-vars */
var damlLedger = require('@daml/ledger');


exports.PaymentStreamStats = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({roundsProcessed: damlTypes.Int.decoder, totalPaidByPayerCC: damlTypes.Numeric(10).decoder, totalPaidByPayerUSD: damlTypes.Numeric(10).decoder, totalReceivedByRecipientCC: damlTypes.Numeric(10).decoder, totalReceivedByRecipientUSD: damlTypes.Numeric(10).decoder, totalReceivedByProcessorCC: damlTypes.Numeric(10).decoder, totalReceivedByProcessorUSD: damlTypes.Numeric(10).decoder, }); }),
  encode: function (__typed__) {
  return {
    roundsProcessed: damlTypes.Int.encode(__typed__.roundsProcessed),
    totalPaidByPayerCC: damlTypes.Numeric(10).encode(__typed__.totalPaidByPayerCC),
    totalPaidByPayerUSD: damlTypes.Numeric(10).encode(__typed__.totalPaidByPayerUSD),
    totalReceivedByRecipientCC: damlTypes.Numeric(10).encode(__typed__.totalReceivedByRecipientCC),
    totalReceivedByRecipientUSD: damlTypes.Numeric(10).encode(__typed__.totalReceivedByRecipientUSD),
    totalReceivedByProcessorCC: damlTypes.Numeric(10).encode(__typed__.totalReceivedByProcessorCC),
    totalReceivedByProcessorUSD: damlTypes.Numeric(10).encode(__typed__.totalReceivedByProcessorUSD),
  };
}
,
};

