@urbanisierung/flethly
Version:
easily sell digital assets with ether
25 lines • 860 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NetworkController = void 0;
const Network_enum_1 = require("../enums/Network.enum");
class NetworkController {
static getNetworkDataById(id) {
switch (id) {
case Network_enum_1.Network.MAINNET:
return {
name: 'Mainnet',
infuraPrefix: 'https://mainnet.infura.io/v3/',
id,
};
case Network_enum_1.Network.RINKEBY:
return {
name: 'Rinkeby',
infuraPrefix: 'https://rinkeby.infura.io/v3/',
id,
};
}
throw new Error(`Unknown network id ${id}`);
}
}
exports.NetworkController = NetworkController;
//# sourceMappingURL=network.controller.js.map