UNPKG

@lidofinance/lido-ethereum-sdk

Version:

<div style="display: flex;" align="center"> <h1 align="center">Lido Ethereum SDK</h1> </div>

17 lines 632 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getVaultReport = void 0; const ipfs_js_1 = require("./ipfs.js"); const report_proof_js_1 = require("./report-proof.js"); const getVaultReport = async (args) => { const { vault, cid, gateway = ipfs_js_1.IPFS_GATEWAY, bigNumberType = 'string' } = args; const report = await (0, ipfs_js_1.fetchIPFS)({ cid, gateway, bigNumberType, }); const vaultData = (0, report_proof_js_1.getVaultData)(report, vault, cid); return vaultData; }; exports.getVaultReport = getVaultReport; //# sourceMappingURL=report.js.map