diff --git a/ADVANCED.md b/ADVANCED.md index f4b1267..8f3fd9b 100644 --- a/ADVANCED.md +++ b/ADVANCED.md @@ -2,7 +2,6 @@ ```ts const orion = new Orion({ - analyticsAPI: "https://analytics-api.orionprotocol.io", referralAPI: "https://referral-api.orionprotocol.io", networks: { 1: { @@ -26,7 +25,6 @@ const orion = new Orion({ // Also you can set some config as default and override it for some params const orion = new Orion("testing", { - analyticsAPI: "https://asdasd.orionprotocol.io", networks: { [SupportedChainId.BSC_TESTNET]: { nodeJsonRpc: "https://data-seed-prebsc-1-s1.binance.org:8545/", diff --git a/package-lock.json b/package-lock.json index 8bb3d76..98ae352 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.71", + "version": "0.20.72", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@orionprotocol/sdk", - "version": "0.20.71", + "version": "0.20.72", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 9396db9..e94746e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.71", + "version": "0.20.72", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/Orion/index.ts b/src/Orion/index.ts index 02ccd5c..fd73418 100644 --- a/src/Orion/index.ts +++ b/src/Orion/index.ts @@ -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}`); diff --git a/src/__tests__/basic.test.ts b/src/__tests__/basic.test.ts index d4de381..f64386b 100644 --- a/src/__tests__/basic.test.ts +++ b/src/__tests__/basic.test.ts @@ -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]: { diff --git a/src/config/envs.json b/src/config/envs.json index 41094b3..6628b38 100644 --- a/src/config/envs.json +++ b/src/config/envs.json @@ -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": { diff --git a/src/config/schemas/pureEnvSchema.ts b/src/config/schemas/pureEnvSchema.ts index 642dd0b..26ab7ce 100644 --- a/src/config/schemas/pureEnvSchema.ts +++ b/src/config/schemas/pureEnvSchema.ts @@ -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), diff --git a/src/types.ts b/src/types.ts index 5a96d83..712316b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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<