"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');

var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../Splice/Api/FeaturedAppRightV1');
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');

var Fairmint_OpenCapTable_IssuerAuthorization = require('../../../Fairmint/OpenCapTable/IssuerAuthorization/module');


exports.AuthorizeIssuer = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, }); }),
  encode: function (__typed__) {
  return {
    issuer: damlTypes.Party.encode(__typed__.issuer),
  };
}
,
};



exports.OcpFactory = damlTypes.assembleTemplate(
{
  templateId: '#OpenCapTable-v25:Fairmint.OpenCapTable.OcpFactory:OcpFactory',
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
  keyEncode: function () { throw 'EncodeError'; },
  decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).decoder, }); }),
  encode: function (__typed__) {
  return {
    system_operator: damlTypes.Party.encode(__typed__.system_operator),
    featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.FeaturedAppRight).encode(__typed__.featured_app_right),
  };
}
,
  Archive: {
    template: function () { return exports.OcpFactory; },
    choiceName: 'Archive',
    argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
    argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
    resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
  },
  AuthorizeIssuer: {
    template: function () { return exports.OcpFactory; },
    choiceName: 'AuthorizeIssuer',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.AuthorizeIssuer.decoder; }),
    argumentEncode: function (__typed__) { return exports.AuthorizeIssuer.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(Fairmint_OpenCapTable_IssuerAuthorization.IssuerAuthorization).decoder; }),
    resultEncode: function (__typed__) { return damlTypes.ContractId(Fairmint_OpenCapTable_IssuerAuthorization.IssuerAuthorization).encode(__typed__); },
  },
}

);


damlTypes.registerTemplate(exports.OcpFactory, ['f53dc3fa0102ffbb24a129fff051d8f337e6992dafc523e4eb622b713b3b3147', '#OpenCapTable-v25']);

