UNPKG

@dolomite-exchange/dolomite-margin

Version:

Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol

19 lines 775 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MantleGasInfo = void 0; const bignumber_js_1 = __importDefault(require("bignumber.js")); class MantleGasInfo { constructor(contracts) { this.contracts = contracts; } // ============ State-Changing Functions ============ async getPriceInWei(options = {}) { const result = await this.contracts.callConstantContractFunction(this.contracts.mantleGasInfo.methods.gasPrice(), options); return new bignumber_js_1.default(result); } } exports.MantleGasInfo = MantleGasInfo; //# sourceMappingURL=MantleGasInfo.js.map