UNPKG

@volare.finance/volare.js

Version:
19 lines 694 B
"use strict"; /** * @file contracts.ts * @author astra <astra@volare.com> * @date 2022 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getContractsForChain = void 0; const tslib_1 = require("tslib"); const contracts_json_1 = tslib_1.__importDefault(require("../../contracts.json")); function getContractsForChain(chainId) { const contracts = contracts_json_1.default; if (contracts[chainId] === undefined) { throw new Error(`Unknown chain id (${chainId}). No known volare contracts have been deployed on this chain.`); } return contracts[chainId]; } exports.getContractsForChain = getContractsForChain; //# sourceMappingURL=contracts.js.map