Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
jayantk committed Oct 20, 2023
1 parent ff49c4f commit 2b4186d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions fortuna/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub enum Options {
pub struct ConfigOptions {
/// Path to a configuration file containing the list of supported blockchains
#[arg(long = "config")]
#[arg(env = "PYTH_CONFIG")]
#[arg(env = "FORTUNA_CONFIG")]
#[arg(default_value = "config.yaml")]
pub config: String,
}
Expand All @@ -75,13 +75,13 @@ pub struct ConfigOptions {
pub struct RandomnessOptions {
/// A secret used for generating new hash chains. A 64-char hex string.
#[arg(long = "secret")]
#[arg(env = "PYTH_SECRET")]
#[arg(env = "FORTUNA_SECRET")]
#[arg(default_value = "0000000000000000000000000000000000000000000000000000000000000000")]
pub secret: String,

/// The length of the hash chain to generate.
#[arg(long = "chain-length")]
#[arg(env = "PYTH_CHAIN_LENGTH")]
#[arg(env = "FORTUNA_CHAIN_LENGTH")]
#[arg(default_value = "32")]
pub chain_length: u64,
}
Expand Down
2 changes: 1 addition & 1 deletion fortuna/src/config/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct GenerateOptions {

/// Retrieve a randomness request to this provider
#[arg(long = "chain-id")]
#[arg(env = "PYTH_CHAIN_ID")]
#[arg(env = "FORTUNA_CHAIN_ID")]
pub chain_id: ChainId,

/// A 20-byte (40 char) hex encoded Ethereum private key.
Expand Down
6 changes: 3 additions & 3 deletions fortuna/src/config/get_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ pub struct GetRequestOptions {

/// Retrieve a randomness request to this provider
#[arg(long = "chain-id")]
#[arg(env = "PYTH_CHAIN_ID")]
#[arg(env = "FORTUNA_CHAIN_ID")]
pub chain_id: ChainId,

/// Retrieve a randomness request to this provider
#[arg(long = "provider")]
#[arg(env = "PYTH_PROVIDER")]
#[arg(env = "FORTUNA_PROVIDER")]
#[arg(default_value = "0x368397bDc956b4F23847bE244f350Bde4615F25E")]
pub provider: Address,

/// The sequence number of the request to retrieve
#[arg(long = "sequence")]
#[arg(env = "PYTH_SEQUENCE")]
#[arg(env = "FORTUNA_SEQUENCE")]
#[arg(default_value = "0")]
pub sequence: u64,
}
2 changes: 1 addition & 1 deletion fortuna/src/config/register_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct RegisterProviderOptions {

/// Retrieve a randomness request to this provider
#[arg(long = "chain-id")]
#[arg(env = "PYTH_CHAIN_ID")]
#[arg(env = "FORTUNA_CHAIN_ID")]
pub chain_id: ChainId,

/// A 20-byte (40 char) hex encoded Ethereum private key.
Expand Down
4 changes: 2 additions & 2 deletions fortuna/src/config/request_randomness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct RequestRandomnessOptions {

/// Request randomness on this blockchain.
#[arg(long = "chain-id")]
#[arg(env = "PYTH_CHAIN_ID")]
#[arg(env = "FORTUNA_CHAIN_ID")]
pub chain_id: ChainId,

/// A 20-byte (40 char) hex encoded Ethereum private key.
Expand All @@ -27,7 +27,7 @@ pub struct RequestRandomnessOptions {

/// Submit a randomness request to this provider
#[arg(long = "provider")]
#[arg(env = "PYTH_PROVIDER")]
#[arg(env = "FORTUNA_PROVIDER")]
#[arg(default_value = "0x368397bDc956b4F23847bE244f350Bde4615F25E")]
pub provider: Address,
}
2 changes: 1 addition & 1 deletion fortuna/src/config/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct RunOptions {

/// The public key of the provider whose requests the server will respond to.
#[arg(long = "provider")]
#[arg(env = "PYTH_PROVIDER")]
#[arg(env = "FORTUNA_PROVIDER")]
#[arg(default_value = "0x368397bDc956b4F23847bE244f350Bde4615F25E")]
pub provider: Address,
}

0 comments on commit 2b4186d

Please sign in to comment.