diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e16b12773..80a41583f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,13 +65,13 @@ repos: entry: cargo +nightly-2023-07-23 fmt --manifest-path ./hermes/Cargo.toml --all -- --config-path rustfmt.toml pass_filenames: false files: hermes - # Hooks for pyth-rng - - id: cargo-fmt-pyth-rng - name: Cargo format for Pyth RNG + # Hooks for Fortuna + - id: cargo-fmt-fortuna + name: Cargo format for Fortuna language: "rust" - entry: cargo +nightly-2023-07-23 fmt --manifest-path ./pyth-rng/Cargo.toml --all -- --config-path rustfmt.toml + entry: cargo +nightly-2023-07-23 fmt --manifest-path ./fortuna/Cargo.toml --all -- --config-path rustfmt.toml pass_filenames: false - files: pyth-rng + files: fortuna # Hooks for message buffer contract - id: cargo-fmt-message-buffer name: Cargo format for message buffer contract diff --git a/pyth-rng/.gitignore b/fortuna/.gitignore similarity index 100% rename from pyth-rng/.gitignore rename to fortuna/.gitignore diff --git a/pyth-rng/Cargo.lock b/fortuna/Cargo.lock similarity index 100% rename from pyth-rng/Cargo.lock rename to fortuna/Cargo.lock diff --git a/pyth-rng/Cargo.toml b/fortuna/Cargo.toml similarity index 98% rename from pyth-rng/Cargo.toml rename to fortuna/Cargo.toml index d5abdbc49..5eb8fd4b5 100644 --- a/pyth-rng/Cargo.toml +++ b/fortuna/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "pyth-rng" +name = "fortuna" version = "0.1.0" edition = "2021" diff --git a/pyth-rng/config.yaml b/fortuna/config.yaml similarity index 100% rename from pyth-rng/config.yaml rename to fortuna/config.yaml diff --git a/pyth-rng/src/abi.json b/fortuna/src/abi.json similarity index 100% rename from pyth-rng/src/abi.json rename to fortuna/src/abi.json diff --git a/pyth-rng/src/api.rs b/fortuna/src/api.rs similarity index 100% rename from pyth-rng/src/api.rs rename to fortuna/src/api.rs diff --git a/pyth-rng/src/api/chain_ids.rs b/fortuna/src/api/chain_ids.rs similarity index 100% rename from pyth-rng/src/api/chain_ids.rs rename to fortuna/src/api/chain_ids.rs diff --git a/pyth-rng/src/api/index.rs b/fortuna/src/api/index.rs similarity index 100% rename from pyth-rng/src/api/index.rs rename to fortuna/src/api/index.rs diff --git a/pyth-rng/src/api/live.rs b/fortuna/src/api/live.rs similarity index 100% rename from pyth-rng/src/api/live.rs rename to fortuna/src/api/live.rs diff --git a/pyth-rng/src/api/metrics.rs b/fortuna/src/api/metrics.rs similarity index 100% rename from pyth-rng/src/api/metrics.rs rename to fortuna/src/api/metrics.rs diff --git a/pyth-rng/src/api/ready.rs b/fortuna/src/api/ready.rs similarity index 100% rename from pyth-rng/src/api/ready.rs rename to fortuna/src/api/ready.rs diff --git a/pyth-rng/src/api/revelation.rs b/fortuna/src/api/revelation.rs similarity index 100% rename from pyth-rng/src/api/revelation.rs rename to fortuna/src/api/revelation.rs diff --git a/pyth-rng/src/command.rs b/fortuna/src/command.rs similarity index 100% rename from pyth-rng/src/command.rs rename to fortuna/src/command.rs diff --git a/pyth-rng/src/command/generate.rs b/fortuna/src/command/generate.rs similarity index 100% rename from pyth-rng/src/command/generate.rs rename to fortuna/src/command/generate.rs diff --git a/pyth-rng/src/command/get_request.rs b/fortuna/src/command/get_request.rs similarity index 100% rename from pyth-rng/src/command/get_request.rs rename to fortuna/src/command/get_request.rs diff --git a/pyth-rng/src/command/register_provider.rs b/fortuna/src/command/register_provider.rs similarity index 100% rename from pyth-rng/src/command/register_provider.rs rename to fortuna/src/command/register_provider.rs diff --git a/pyth-rng/src/command/request_randomness.rs b/fortuna/src/command/request_randomness.rs similarity index 100% rename from pyth-rng/src/command/request_randomness.rs rename to fortuna/src/command/request_randomness.rs diff --git a/pyth-rng/src/command/run.rs b/fortuna/src/command/run.rs similarity index 100% rename from pyth-rng/src/command/run.rs rename to fortuna/src/command/run.rs diff --git a/pyth-rng/src/config.rs b/fortuna/src/config.rs similarity index 100% rename from pyth-rng/src/config.rs rename to fortuna/src/config.rs diff --git a/pyth-rng/src/config/generate.rs b/fortuna/src/config/generate.rs similarity index 100% rename from pyth-rng/src/config/generate.rs rename to fortuna/src/config/generate.rs diff --git a/pyth-rng/src/config/get_request.rs b/fortuna/src/config/get_request.rs similarity index 100% rename from pyth-rng/src/config/get_request.rs rename to fortuna/src/config/get_request.rs diff --git a/pyth-rng/src/config/register_provider.rs b/fortuna/src/config/register_provider.rs similarity index 100% rename from pyth-rng/src/config/register_provider.rs rename to fortuna/src/config/register_provider.rs diff --git a/pyth-rng/src/config/request_randomness.rs b/fortuna/src/config/request_randomness.rs similarity index 100% rename from pyth-rng/src/config/request_randomness.rs rename to fortuna/src/config/request_randomness.rs diff --git a/pyth-rng/src/config/run.rs b/fortuna/src/config/run.rs similarity index 100% rename from pyth-rng/src/config/run.rs rename to fortuna/src/config/run.rs diff --git a/pyth-rng/src/ethereum.rs b/fortuna/src/ethereum.rs similarity index 100% rename from pyth-rng/src/ethereum.rs rename to fortuna/src/ethereum.rs diff --git a/pyth-rng/src/main.rs b/fortuna/src/main.rs similarity index 100% rename from pyth-rng/src/main.rs rename to fortuna/src/main.rs diff --git a/pyth-rng/src/state.rs b/fortuna/src/state.rs similarity index 100% rename from pyth-rng/src/state.rs rename to fortuna/src/state.rs