| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- import { Options } from "yargs";
- export const priceServiceEndpoint = {
- "price-service-endpoint": {
- description:
- "Endpoint URL for the hermes client. e.g: https://endpoint/example",
- type: "string",
- required: true,
- } as Options,
- };
- export const pythContractAddress = {
- "pyth-contract-address": {
- description:
- "Pyth contract address. Provide the network name on which Pyth is deployed " +
- "or the Pyth contract address if you use a local network.",
- type: "string",
- required: true,
- } as Options,
- };
- export const priceConfigFile = {
- "price-config-file": {
- description: "Path to price configuration YAML file.",
- type: "string",
- required: true,
- } as Options,
- };
- export const pollingFrequency = {
- "polling-frequency": {
- description:
- "The frequency to poll price info data from the network if the RPC is not a websocket.",
- type: "number",
- required: false,
- default: 5,
- } as Options,
- };
- export const pushingFrequency = {
- "pushing-frequency": {
- description:
- "The frequency to push prices to the RPC. " +
- "It is better that the value be greater than the block time of the network, so this program confirms " +
- "it is updated and does not push it twice.",
- type: "number",
- required: false,
- default: 10,
- } as Options,
- };
- export const mnemonicFile = {
- "mnemonic-file": {
- description: "Path to payer mnemonic (private key) file.",
- type: "string",
- required: true,
- } as Options,
- };
- export const logLevel = {
- "log-level": {
- description: "Log level",
- type: "string",
- required: false,
- default: "info",
- choices: ["trace", "debug", "info", "warn", "error"],
- } as Options,
- };
- export const controllerLogLevel = {
- "controller-log-level": {
- description: "Log level for the controller.",
- type: "string",
- required: false,
- default: "info",
- choices: ["trace", "debug", "info", "warn", "error"],
- } as Options,
- };
- export const enableMetrics = {
- "enable-metrics": {
- description: "Enable Prometheus metrics server",
- type: "boolean",
- required: false,
- default: true,
- } as Options,
- };
- export const metricsPort = {
- "metrics-port": {
- description: "Port for the Prometheus metrics server",
- type: "number",
- required: false,
- default: 9090,
- } as Options,
- };
|