UNPKG

@ledgerhq/coin-tron

Version:
12 lines 637 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.listOperations = listOperations; const network_1 = require("../network"); const trongrid_adapters_1 = require("../network/trongrid/trongrid-adapters"); async function listOperations(address) { // TODO: do not use 1000 as a limit, but depending on account state const txs = await (0, network_1.fetchTronAccountTxs)(address, txs => txs.length < 1000, {}); // TODO: adapt directly in network calls return [txs.map(tx => (0, trongrid_adapters_1.fromTrongridTxInfoToOperation)(tx, address)), ""]; } //# sourceMappingURL=listOperations.js.map