@sx-bet/sportx-js
Version:
Provides an easy to use API to interact with the SportX relayer.
14 lines • 480 B
JavaScript
import { Environments, Networks } from "../constants";
export function getNetwork(environment) {
switch (environment) {
case Environments.SxToronto:
return Networks.SX_TORONTO;
case Environments.SxStage:
return Networks.SX_MAINNET;
case Environments.SxMainnet:
return Networks.SX_MAINNET;
default:
throw new Error(`Unkown environment ${environment}`);
}
}
//# sourceMappingURL=networks.js.map