@melonproject/protocol
Version:
Technology Regulated and Operated Investment Funds
12 lines (11 loc) • 473 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const Contracts_1 = require("../../../../Contracts");
const callFactory_1 = require("../../../../utils/solidity/callFactory");
const postProcess = (environment, result) => {
return new Date(result.toString() * 1000);
};
const getCreationTime = callFactory_1.callFactoryWithoutParams('creationTime', Contracts_1.Contracts.Hub, {
postProcess,
});
exports.getCreationTime = getCreationTime;