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gBACpC,MAAM,QAAU,YAAY,QAC5B,OAAO,QAAU","file":"/npm/@meterio/sumer-js@0.2.196/dist/nodejs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@meterio/sumer-js@0.2.196/dist/nodejs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n/**\n * @file Sumer\n * @desc This file defines the constructor of the `Sumer` class.\n * @hidden\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nconst ethers_1 = require(\"ethers\");\nconst eth = __importStar(require(\"./eth\"));\nconst util = __importStar(require(\"./util\"));\nconst comptroller = __importStar(require(\"./comptroller\"));\nconst cToken = __importStar(require(\"./cToken\"));\nconst errorABIs_1 = require(\"./errorABIs\");\nconst abi_1 = require(\"./abi\");\nconst constants_1 = require(\"./constants\");\nclass Sumer {\n    constructor(provider, options) {\n        this._provider = provider;\n        this._network = { id: options.networkId, name: options.networkName };\n        this.supply = cToken.supply.bind(this);\n        this.supplyWithPermit = cToken.supplyWithPermit.bind(this);\n        this.redeem = cToken.redeem.bind(this);\n        this.borrow = cToken.borrow.bind(this);\n        this.repayBorrow = cToken.repayBorrow.bind(this);\n        this.repayBorrowWithPermit = cToken.repayBorrowWithPermit.bind(this);\n        this.liquidateBorrow = cToken.liquidateBorrow.bind(this);\n        this.calcBorrowAmountForProtectedMint = cToken.calcBorrowAmountForProtectedMint.bind(this);\n        this.protectedMint = cToken.protectedMint.bind(this);\n        this.enterMarkets = comptroller.enterMarkets.bind(this);\n        this.exitMarket = comptroller.exitMarket.bind(this);\n        this.redeemFaceValue = comptroller.redeemFaceValue.bind(this);\n        this.redeemFaceValueWithPermit = comptroller.redeemFaceValueWithPermit.bind(this);\n        this.redeemFaceValuePreview = comptroller.redeemFaceValuePreview.bind(this);\n        this.calcPlan = comptroller.calcPlan.bind(this);\n    }\n    getTokenPairBySymbol(symbol) {\n        return (0, constants_1.getTokenPairBySymbol)(this._network.name, symbol);\n    }\n    getTokenPairByAddress(tokenAddress) {\n        return (0, constants_1.getTokenPairByAddress)(this._network.name, tokenAddress);\n    }\n    getTokenPairsByGroupId(assetGroupId) {\n        return (0, constants_1.getTokenPairsByGroupId)(this._network.name, assetGroupId);\n    }\n}\nSumer.eth = eth;\nSumer.util = util;\nSumer._ethers = ethers_1.ethers;\nSumer.abi = abi_1.abi;\nSumer.errorABIs = errorABIs_1.errorABIs;\nSumer.constants = constants_1.constants;\nSumer.getDecimals = constants_1.getDecimals;\nSumer.getAddress = constants_1.getAddress;\nSumer.getName = constants_1.getName;\nSumer.getTokenPairs = constants_1.getTokenPairs;\nSumer.getNetworkBlocksPerYear = constants_1.getNetworkBlocksPerYear;\nSumer.getRateModals = constants_1.getRateModals;\nSumer.getTokenPairByAddress = constants_1.getTokenPairByAddress;\nSumer.getTokenPairBySymbol = constants_1.getTokenPairBySymbol;\nSumer.getTokenPairsByGroupId = constants_1.getTokenPairsByGroupId;\nSumer.isUnderlyAllowed = constants_1.isUnderlyAllowed;\nSumer.isCTokenAllowed = constants_1.isCTokenAllowed;\nSumer.isEther = constants_1.isEther;\nmodule.exports = Sumer;\n"]}