{"size": 1961, "ext": "js", "max_stars_repo_path": "devrel/ABI/demo-abi/js/node_modules/algosdk/dist/cjs/src/client/v2/algod/pendingTransactions.js", "max_stars_repo_name": "astritm/smart-contracts", "max_stars_repo_stars_event_min_datetime": "2020-08-06T09:06:20.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T23:16:11.000Z", "max_issues_repo_path": "devrel/ABI/demo-abi/js/node_modules/algosdk/dist/cjs/src/client/v2/algod/pendingTransactions.js", "max_issues_repo_name": "astritm/smart-contracts", "max_issues_repo_issues_event_min_datetime": "2021-03-05T00:48:49.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-10T02:41:09.000Z", "max_forks_repo_path": "devrel/ABI/demo-abi/js/node_modules/algosdk/dist/cjs/src/client/v2/algod/pendingTransactions.js", "max_forks_repo_name": "astritm/smart-contracts", "max_forks_repo_forks_event_min_datetime": "2020-12-17T00:40:09.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-01T22:01:25.000Z"}
{"max_stars_count": 67, "max_issues_count": 2, "max_forks_count": 47, "avg_line_length": 37.0, "max_line_length": 141, "alphanum_fraction": 0.6277409485}
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsonrequest_1 = __importDefault(require("../jsonrequest"));
const encoding = __importStar(require("../../../encoding/encoding"));
/**
 * pendingTransactionsInformation returns transactions that are pending in the pool
 */
class PendingTransactions extends jsonrequest_1.default {
    constructor(c) {
        super(c);
        this.query.format = 'msgpack';
    }
    /* eslint-disable class-methods-use-this */
    path() {
        return '/v2/transactions/pending';
    }
    prepare(body) {
        if (body && body.byteLength > 0) {
            return encoding.decode(body);
        }
        return undefined;
    }
    /* eslint-enable class-methods-use-this */
    // max sets the maximum number of txs to return
    max(max) {
        this.query.max = max;
        return this;
    }
}
exports.default = PendingTransactions;
//# sourceMappingURL=pendingTransactions.js.map