How to use the @cityofzion/neon-core.settings.networks function in @cityofzion/neon-core

To help you get started, we’ve selected a few @cityofzion/neon-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CityOfZion / neon-js / packages / neon-api / __tests__ / provider / neoscan / core.ts View on Github external
beforeEach(() => {
  jest.resetModules();
  settings.networks.UnitTestNet = new rpc.Network({
    name: "UnitTestNet",
    extra: { neonDB: testUrl, neoscan: "http://wrongurl.com" }
  });
});
github CityOfZion / neon-js / packages / neon-api / __tests__ / provider / neoscan / class.ts View on Github external
beforeEach(() => {
  jest.resetModules();
  settings.networks.UnitTestNet = new rpc.Network({
    name: "UnitTestNet",
    extra: { neoscan: UnitTestNetUrl, neonDB: "http://wrongurl.com" }
  });
});
github CityOfZion / neon-js / packages / neon-api / __tests__ / provider / neonDB / class.ts View on Github external
beforeEach(() => {
  jest.resetModules();
  settings.networks.UnitTestNet = new rpc.Network({
    name: "UnitTestNet",
    extra: { neonDB: UnitTestNetUrl, neoscan: "http://wrongurl.com" }
  });
});
github CityOfZion / neon-js / packages / neon-api / src / provider / neoscan / class.ts View on Github external
public constructor(url: string) {
    if (settings.networks[url] && settings.networks[url].extra.neoscan) {
      this.url = settings.networks[url].extra.neoscan;
    } else {
      this.url = url;
    }
    log.info(`Created Neoscan Provider: ${this.url}`);
  }
github CityOfZion / neon-js / packages / neon-api / src / provider / neonDB / class.ts View on Github external
public constructor(url: string) {
    if (settings.networks[url] && settings.networks[url].extra.neonDB) {
      this.url = settings.networks[url].extra.neonDB;
    } else {
      this.url = url;
    }
    log.info(`Created NeonDB Provider: ${this.url}`);
  }