UNPKG

@q-dev/qdex-js-sdk

Version:

Typescript Library to interact with Q DEX Contracts

19 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAbi = void 0; /* eslint-disable @typescript-eslint/no-var-requires */ // seems like web3 typings for AbiItems are broken. use 'require' for abi jsons instead of import. function getAbi(fileName) { // CAUTION: the explicit listing of each abi is required for browser support (otherwise webpack does not include the abis in the output bundle) switch (fileName) { case 'DEX_RevenuePool.json': return require('./DEX_RevenuePool.json'); case 'DEX_Factory.json': return require('./DEX_Factory.json'); case 'DEX_Router.json': return require('./DEX_Router.json'); case 'DEX_Pair.json': return require('./DEX_Pair.json'); case 'DEX_ParametersVoting.json': return require('./DEX_ParametersVoting.json'); case 'DEX_Parameters.json': return require('./DEX_Parameters.json'); default: throw new RangeError('Unknown abi file name: ' + fileName); } } exports.getAbi = getAbi; //# sourceMappingURL=AbiImporter.js.map