-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
84 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,10 @@ | ||
import { JsonRpcProvider } from '@ethersproject/providers'; | ||
import { arbitrumNetworkData as data } from './data'; | ||
import { arbitrumWorkerJobs as workerJobs } from './workers'; | ||
import { createArbitrumServices as createServices } from './services'; | ||
|
||
let services: ReturnType<typeof createServices>; | ||
export * from './services'; | ||
|
||
export class ArbitrumNetworkConfig { | ||
static data = data; | ||
static workerJobs = workerJobs; | ||
static provider = new JsonRpcProvider({ url: data.rpcUrl, timeout: 60000 }) | ||
|
||
static get contentService() { | ||
if (!services) services = createServices(); | ||
|
||
return services.contentService; | ||
} | ||
|
||
static get poolAprServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolAprServices; | ||
} | ||
|
||
static get poolStakingServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolStakingServices; | ||
} | ||
|
||
static get tokenPriceHandlers() { | ||
if (!services) services = createServices(); | ||
|
||
return services.tokenPriceHandlers; | ||
} | ||
|
||
static get userStakedBalanceServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.userStakedBalanceServices; | ||
} | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,10 @@ | ||
import { JsonRpcProvider } from '@ethersproject/providers'; | ||
import { avalancheNetworkData as data } from './data'; | ||
import { avalancheWorkerJobs as workerJobs } from './workers'; | ||
import { createAvalancheServices as createServices } from './services'; | ||
|
||
let services: ReturnType<typeof createServices>; | ||
export * from './services'; | ||
|
||
export class AvalancheNetworkConfig { | ||
static data = data; | ||
static workerJobs = workerJobs; | ||
static provider = new JsonRpcProvider({ url: data.rpcUrl, timeout: 60000 }) | ||
|
||
static get contentService() { | ||
if (!services) services = createServices(); | ||
|
||
return services.contentService; | ||
} | ||
|
||
static get poolAprServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolAprServices; | ||
} | ||
|
||
static get poolStakingServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolStakingServices; | ||
} | ||
|
||
static get tokenPriceHandlers() { | ||
if (!services) services = createServices(); | ||
|
||
return services.tokenPriceHandlers; | ||
} | ||
|
||
static get userStakedBalanceServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.userStakedBalanceServices; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,10 @@ | ||
import { JsonRpcProvider } from '@ethersproject/providers'; | ||
import { baseNetworkData as data } from './data'; | ||
import { baseWorkerJobs as workerJobs } from './workers'; | ||
import { createBaseServices as createServices } from './services'; | ||
|
||
let services: ReturnType<typeof createServices>; | ||
export * from './services'; | ||
|
||
export class BaseNetworkConfig { | ||
static data = data; | ||
static workerJobs = workerJobs; | ||
static provider = new JsonRpcProvider({ url: data.rpcUrl, timeout: 60000 }) | ||
|
||
static get contentService() { | ||
if (!services) services = createServices(); | ||
|
||
return services.contentService; | ||
} | ||
|
||
static get poolAprServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolAprServices; | ||
} | ||
|
||
static get poolStakingServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolStakingServices; | ||
} | ||
|
||
static get tokenPriceHandlers() { | ||
if (!services) services = createServices(); | ||
|
||
return services.tokenPriceHandlers; | ||
} | ||
|
||
static get userStakedBalanceServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.userStakedBalanceServices; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,10 @@ | ||
import { JsonRpcProvider } from '@ethersproject/providers'; | ||
import { fantomNetworkData as data } from './data'; | ||
import { fantomWorkerJobs as workerJobs } from './workers'; | ||
import { createFantomServices as createServices } from './services'; | ||
|
||
let services: ReturnType<typeof createServices>; | ||
export * from './services'; | ||
|
||
export class FantomNetworkConfig { | ||
static data = data; | ||
static workerJobs = workerJobs; | ||
static provider = new JsonRpcProvider({ url: data.rpcUrl, timeout: 60000 }) | ||
|
||
static get contentService() { | ||
if (!services) services = createServices(); | ||
|
||
return services.contentService; | ||
} | ||
|
||
static get poolAprServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolAprServices; | ||
} | ||
|
||
static get poolStakingServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolStakingServices; | ||
} | ||
|
||
static get tokenPriceHandlers() { | ||
if (!services) services = createServices(); | ||
|
||
return services.tokenPriceHandlers; | ||
} | ||
|
||
static get userStakedBalanceServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.userStakedBalanceServices; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,10 @@ | ||
import { JsonRpcProvider } from '@ethersproject/providers'; | ||
import { gnosisNetworkData as data } from './data'; | ||
import { gnosisWorkerJobs as workerJobs } from './workers'; | ||
import { createGnosisServices as createServices } from './services'; | ||
|
||
let services: ReturnType<typeof createServices>; | ||
export * from './services'; | ||
|
||
export class GnosisNetworkConfig { | ||
static data = data; | ||
static workerJobs = workerJobs; | ||
static provider = new JsonRpcProvider({ url: data.rpcUrl, timeout: 60000 }) | ||
|
||
static get contentService() { | ||
if (!services) services = createServices(); | ||
|
||
return services.contentService; | ||
} | ||
|
||
static get poolAprServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolAprServices; | ||
} | ||
|
||
static get poolStakingServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolStakingServices; | ||
} | ||
|
||
static get tokenPriceHandlers() { | ||
if (!services) services = createServices(); | ||
|
||
return services.tokenPriceHandlers; | ||
} | ||
|
||
static get userStakedBalanceServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.userStakedBalanceServices; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,9 @@ | ||
import { JsonRpcProvider } from '@ethersproject/providers'; | ||
import { mainnetNetworkData as data } from './data'; | ||
import { mainnetWorkerJobs as workerJobs } from './workers'; | ||
import { createMainnetServices as createServices } from './services'; | ||
|
||
let services: ReturnType<typeof createServices>; | ||
|
||
export class MainnetNetworkConfig { | ||
static data = data; | ||
static workerJobs = workerJobs; | ||
static provider = new JsonRpcProvider({ url: data.rpcUrl, timeout: 60000 }) | ||
|
||
static get contentService() { | ||
if (!services) services = createServices(); | ||
|
||
return services.contentService; | ||
} | ||
|
||
static get poolAprServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolAprServices; | ||
} | ||
|
||
static get poolStakingServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.poolStakingServices; | ||
} | ||
|
||
static get tokenPriceHandlers() { | ||
if (!services) services = createServices(); | ||
|
||
return services.tokenPriceHandlers; | ||
} | ||
|
||
static get userStakedBalanceServices() { | ||
if (!services) services = createServices(); | ||
|
||
return services.userStakedBalanceServices; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.