mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Remove analyticsAPI from config
This commit is contained in:
@@ -33,7 +33,6 @@ export default class Orion {
|
||||
}
|
||||
this.env = envOrConfig;
|
||||
config = {
|
||||
analyticsAPI: envConfig.analyticsAPI,
|
||||
referralAPI: envConfig.referralAPI,
|
||||
networks: Object.entries(envConfig.networks).map(([chainId, networkConfig]) => {
|
||||
if (!isValidChainId(chainId)) throw new Error(`Invalid chainId: ${chainId}`);
|
||||
|
||||
@@ -159,7 +159,6 @@ describe('Orion', () => {
|
||||
const orionPriceFeedAPI = `http://localhost:${server2.port}`;
|
||||
|
||||
const orion = new Orion({
|
||||
analyticsAPI: 'https://analytics-api.orionprotocol.io',
|
||||
referralAPI: 'https://referral-api.orionprotocol.io',
|
||||
networks: {
|
||||
1: {
|
||||
@@ -239,7 +238,6 @@ describe('Orion', () => {
|
||||
|
||||
test('Init Orion testing with overrides', () => {
|
||||
const orion = new Orion('testing', {
|
||||
analyticsAPI: 'https://asdasd.orionprotocol.io',
|
||||
referralAPI: 'https://zxczxc.orionprotocol.io',
|
||||
networks: {
|
||||
[SupportedChainId.BSC_TESTNET]: {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"production": {
|
||||
"analyticsAPI": "https://trade.orion.xyz/api/stats",
|
||||
"referralAPI": "https://trade.orion.xyz/referral-api",
|
||||
"networks": {
|
||||
"1": {
|
||||
@@ -169,7 +168,6 @@
|
||||
}
|
||||
},
|
||||
"testing": {
|
||||
"analyticsAPI": "https://trade.orion.xyz/api/stats",
|
||||
"referralAPI": "https://testing.orion.xyz/referral-api",
|
||||
"networks": {
|
||||
"97": {
|
||||
@@ -284,7 +282,6 @@
|
||||
}
|
||||
},
|
||||
"staging": {
|
||||
"analyticsAPI": "https://trade.orion.xyz/api/stats",
|
||||
"referralAPI": "https://staging.orion.xyz/referral-api",
|
||||
"networks": {
|
||||
"1": {
|
||||
@@ -452,7 +449,6 @@
|
||||
}
|
||||
},
|
||||
"experimental": {
|
||||
"analyticsAPI": "https://trade.orion.xyz/api/stats",
|
||||
"referralAPI": "https://testing.orion.xyz/referral-api",
|
||||
"networks": {
|
||||
"97": {
|
||||
@@ -494,7 +490,6 @@
|
||||
}
|
||||
},
|
||||
"kucoin-production": {
|
||||
"analyticsAPI": "https://trade.orion.xyz/api/stats",
|
||||
"referralAPI": "https://trade.orion.xyz/referral-api",
|
||||
"networks": {
|
||||
"1": {
|
||||
|
||||
@@ -23,7 +23,6 @@ export const pureEnvNetworksSchema = z.object({
|
||||
});
|
||||
|
||||
export const pureEnvPayloadSchema = z.object({
|
||||
analyticsAPI: z.string().url(),
|
||||
referralAPI: z.string().url(),
|
||||
networks: z.record(
|
||||
z.nativeEnum(SupportedChainId),
|
||||
|
||||
@@ -279,7 +279,6 @@ export type KnownEnv = typeof knownEnvs[number];
|
||||
export type Json = string | number | boolean | null | Json[] | { [key: string]: Json };
|
||||
|
||||
export type EnvConfig = {
|
||||
analyticsAPI: string
|
||||
referralAPI: string
|
||||
networks: Partial<
|
||||
Record<
|
||||
|
||||
Reference in New Issue
Block a user