-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove `--summary` flag so exit codes are correct - resolve all circular refs within packages
- Loading branch information
Ivaylo Andonov
committed
Mar 24, 2023
1 parent
d706a3d
commit 070f5e9
Showing
38 changed files
with
105 additions
and
107 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
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
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
2 changes: 1 addition & 1 deletion
2
packages/cardano-services/src/Program/programs/blockfrostWorker.ts
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,13 +1,4 @@ | ||
export * from './blockfrostWorker'; | ||
export * from './providerServer'; | ||
export * from './txWorker'; | ||
|
||
/** | ||
* cardano-services programs | ||
*/ | ||
|
||
export enum Programs { | ||
BlockfrostWorker = 'Blockfrost worker', | ||
ProviderServer = 'Provider server', | ||
RabbitmqWorker = 'RabbitMQ worker' | ||
} | ||
export * from './types'; |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { CommonProgramOptions } from '../options/common'; | ||
import { OgmiosProgramOptions } from '../options/ogmios'; | ||
import { PosgresProgramOptions } from '../options/postgres'; | ||
import { RabbitMqProgramOptions } from '../options/rabbitMq'; | ||
|
||
/** | ||
* cardano-services programs | ||
*/ | ||
export enum Programs { | ||
BlockfrostWorker = 'Blockfrost worker', | ||
ProviderServer = 'Provider server', | ||
RabbitmqWorker = 'RabbitMQ worker' | ||
} | ||
|
||
/** | ||
* Used as mount segments, so must be URL-friendly | ||
*/ | ||
export enum ServiceNames { | ||
Asset = 'asset', | ||
StakePool = 'stake-pool', | ||
NetworkInfo = 'network-info', | ||
TxSubmit = 'tx-submit', | ||
Utxo = 'utxo', | ||
ChainHistory = 'chain-history', | ||
Rewards = 'rewards' | ||
} | ||
|
||
export enum ProviderServerOptionDescriptions { | ||
CardanoNodeConfigPath = 'Cardano node config path', | ||
DbCacheTtl = 'Cache TTL in seconds between 60 and 172800 (two days), an option for database related operations', | ||
DisableDbCache = 'Disable DB cache', | ||
DisableStakePoolMetricApy = 'Omit this metric for improved query performance', | ||
EpochPollInterval = 'Epoch poll interval', | ||
TokenMetadataCacheTtl = 'Token Metadata API cache TTL in minutes', | ||
TokenMetadataServerUrl = 'Token Metadata API server URL', | ||
UseBlockfrost = 'Enables Blockfrost cached data DB', | ||
UseQueue = 'Enables RabbitMQ', | ||
PaginationPageSizeLimit = 'Pagination page size limit shared across all providers' | ||
} | ||
|
||
export type ProviderServerArgs = CommonProgramOptions & | ||
PosgresProgramOptions & | ||
OgmiosProgramOptions & | ||
RabbitMqProgramOptions & { | ||
cardanoNodeConfigPath?: string; | ||
disableDbCache?: boolean; | ||
disableStakePoolMetricApy?: boolean; | ||
tokenMetadataCacheTTL?: number; | ||
tokenMetadataServerUrl?: string; | ||
tokenMetadataRequestTimeout?: number; | ||
epochPollInterval: number; | ||
dbCacheTtl: number; | ||
useBlockfrost?: boolean; | ||
useQueue?: boolean; | ||
paginationPageSizeLimit?: number; | ||
serviceNames: ServiceNames[]; | ||
}; |
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
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
2 changes: 1 addition & 1 deletion
2
packages/cardano-services/src/StakePool/StakePoolHttpService.ts
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
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
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
Oops, something went wrong.