Strictest / tests / minor improvements

This commit is contained in:
Aleksandr Kraiz
2023-02-17 17:31:35 +04:00
parent 11c8348ee9
commit 2c24f71453
39 changed files with 566 additions and 128 deletions

View File

@@ -1,11 +1,11 @@
import { merge } from 'merge-anything';
import { chains, envs } from '../config';
import { type networkCodes } from '../constants';
import type { networkCodes } from '../constants';
import OrionUnit from '../OrionUnit';
import OrionAnalytics from '../services/OrionAnalytics';
import { ReferralSystem } from '../services/ReferralSystem';
import simpleFetch from '../simpleFetch';
import { type SupportedChainId, type DeepPartial, type VerboseOrionUnitConfig } from '../types';
import type { SupportedChainId, DeepPartial, VerboseOrionUnitConfig, KnownEnv } from '../types';
import { isValidChainId } from '../utils';
type EnvConfig = {
@@ -29,8 +29,6 @@ type AggregatedAssets = Partial<
>
>;
type KnownEnv = 'testing' | 'staging' | 'production';
export default class Orion {
public readonly env?: string;