text: const appSettings = require('./app-settings.js');
  
  function getConfig(env) {
      switch (env) {
          case 'mainnet':
              return {
                  networkId: 'mainnet',
                  nodeUrl: 'https://rpc.mainnet.near.org',
                  contractName: appSettings.CONTRACT_NAME,
                  walletUrl: 'https://wallet.near.org',
                  helperUrl: 'https://helper.mainnet.near.org',
                  explorerUrl: 'https://explorer.mainnet.near.org',
              }
          case 'testnet':
              return {
                  networkId: 'testnet',
                  nodeUrl: 'https://rpc.testnet.near.org',
                  contractName: appSettings.CONTRACT_NAME,
                  walletUrl: 'https://wallet.testnet.near.org',
                  helperUrl: 'https://helper.testnet.near.org',
                  explorerUrl: 'https://explorer.testnet.near.org',
              }
          case 'test':
              return {
                  networkId: 'shared-test',
                  nodeUrl: 'https://rpc.ci-testnet.near.org',
                  contractName: appSettings.CONTRACT_NAME,
                  masterAccount: appSettings.MASTER_ACCOUNT
              }
          default:
              throw Error(`Unconfigured environment '${env}'. Can be configured in src/config.js.`)
      }
  }
  
  module.exports = getConfig
  