From e3e98295f115036fbebdd863e43a362418bc0bad Mon Sep 17 00:00:00 2001 From: raphaelDkhn <113879115+raphaelDkhn@users.noreply.github.com> Date: Sun, 11 Aug 2024 14:15:23 +0300 Subject: [PATCH] restructure --- Scarb.toml | 18 ++++++++++++++++++ packages/{orion-algo => algo}/.tool-versions | 0 packages/{orion-algo => algo}/Scarb.toml | 2 +- packages/{orion-algo => algo}/src/algo.cairo | 0 .../{orion-algo => algo}/src/algo/cdf.cairo | 0 .../src/algo/linear_fit.cairo | 0 packages/{orion-algo => algo}/src/lib.cairo | 0 .../{orion-algo => algo}/src/span_math.cairo | 0 .../src/span_math/span_fixed.cairo | 0 packages/{orion-ml => ml}/.tool-versions | 0 packages/{orion-ml => ml}/README.md | 0 packages/{orion-ml => ml}/Scarb.toml | 8 ++++++-- packages/{orion-ml => ml}/src/lgbm.cairo | 0 packages/{orion-ml => ml}/src/lib.cairo | 0 packages/{orion-ml => ml}/src/xgboost.cairo | 0 .../{orion-numbers => numbers}/.tool-versions | 0 packages/{orion-numbers => numbers}/README.md | 0 packages/{orion-numbers => numbers}/Scarb.toml | 0 .../{orion-numbers => numbers}/src/f64.cairo | 0 .../src/f64/comp.cairo | 0 .../src/f64/erf.cairo | 0 .../src/f64/helpers.cairo | 0 .../src/f64/lut.cairo | 0 .../src/f64/ops.cairo | 0 .../{orion-numbers => numbers}/src/lib.cairo | 0 25 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 Scarb.toml rename packages/{orion-algo => algo}/.tool-versions (100%) rename packages/{orion-algo => algo}/Scarb.toml (84%) rename packages/{orion-algo => algo}/src/algo.cairo (100%) rename packages/{orion-algo => algo}/src/algo/cdf.cairo (100%) rename packages/{orion-algo => algo}/src/algo/linear_fit.cairo (100%) rename packages/{orion-algo => algo}/src/lib.cairo (100%) rename packages/{orion-algo => algo}/src/span_math.cairo (100%) rename packages/{orion-algo => algo}/src/span_math/span_fixed.cairo (100%) rename packages/{orion-ml => ml}/.tool-versions (100%) rename packages/{orion-ml => ml}/README.md (100%) rename packages/{orion-ml => ml}/Scarb.toml (68%) rename packages/{orion-ml => ml}/src/lgbm.cairo (100%) rename packages/{orion-ml => ml}/src/lib.cairo (100%) rename packages/{orion-ml => ml}/src/xgboost.cairo (100%) rename packages/{orion-numbers => numbers}/.tool-versions (100%) rename packages/{orion-numbers => numbers}/README.md (100%) rename packages/{orion-numbers => numbers}/Scarb.toml (100%) rename packages/{orion-numbers => numbers}/src/f64.cairo (100%) rename packages/{orion-numbers => numbers}/src/f64/comp.cairo (100%) rename packages/{orion-numbers => numbers}/src/f64/erf.cairo (100%) rename packages/{orion-numbers => numbers}/src/f64/helpers.cairo (100%) rename packages/{orion-numbers => numbers}/src/f64/lut.cairo (100%) rename packages/{orion-numbers => numbers}/src/f64/ops.cairo (100%) rename packages/{orion-numbers => numbers}/src/lib.cairo (100%) diff --git a/Scarb.toml b/Scarb.toml new file mode 100644 index 000000000..e21692474 --- /dev/null +++ b/Scarb.toml @@ -0,0 +1,18 @@ +[workspace] +members = ["packages/algo", "packages/ml", "packages/numbers"] +name = "orion" +version = "0.1.0" +description = "Cairo libraries to build the intelligence of verifiable agents" +homepage = "https://github.com/gizatechxyz/orion/" +cairo-version = "2.7.0" + +[dev-dependencies] +cairo_test = "2.7.0" + +[tool.hints] +definitions = "proto/orion.proto" + + +[cairo] +enable-gas = false + diff --git a/packages/orion-algo/.tool-versions b/packages/algo/.tool-versions similarity index 100% rename from packages/orion-algo/.tool-versions rename to packages/algo/.tool-versions diff --git a/packages/orion-algo/Scarb.toml b/packages/algo/Scarb.toml similarity index 84% rename from packages/orion-algo/Scarb.toml rename to packages/algo/Scarb.toml index 8b586adb0..4ec5559d1 100644 --- a/packages/orion-algo/Scarb.toml +++ b/packages/algo/Scarb.toml @@ -9,7 +9,7 @@ edition = "2023_11" cairo_test = "2.7.0" [dependencies] -orion_numbers = { path = "../orion-numbers" } +orion_numbers = { path = "../numbers" } [cairo] enable-gas=false \ No newline at end of file diff --git a/packages/orion-algo/src/algo.cairo b/packages/algo/src/algo.cairo similarity index 100% rename from packages/orion-algo/src/algo.cairo rename to packages/algo/src/algo.cairo diff --git a/packages/orion-algo/src/algo/cdf.cairo b/packages/algo/src/algo/cdf.cairo similarity index 100% rename from packages/orion-algo/src/algo/cdf.cairo rename to packages/algo/src/algo/cdf.cairo diff --git a/packages/orion-algo/src/algo/linear_fit.cairo b/packages/algo/src/algo/linear_fit.cairo similarity index 100% rename from packages/orion-algo/src/algo/linear_fit.cairo rename to packages/algo/src/algo/linear_fit.cairo diff --git a/packages/orion-algo/src/lib.cairo b/packages/algo/src/lib.cairo similarity index 100% rename from packages/orion-algo/src/lib.cairo rename to packages/algo/src/lib.cairo diff --git a/packages/orion-algo/src/span_math.cairo b/packages/algo/src/span_math.cairo similarity index 100% rename from packages/orion-algo/src/span_math.cairo rename to packages/algo/src/span_math.cairo diff --git a/packages/orion-algo/src/span_math/span_fixed.cairo b/packages/algo/src/span_math/span_fixed.cairo similarity index 100% rename from packages/orion-algo/src/span_math/span_fixed.cairo rename to packages/algo/src/span_math/span_fixed.cairo diff --git a/packages/orion-ml/.tool-versions b/packages/ml/.tool-versions similarity index 100% rename from packages/orion-ml/.tool-versions rename to packages/ml/.tool-versions diff --git a/packages/orion-ml/README.md b/packages/ml/README.md similarity index 100% rename from packages/orion-ml/README.md rename to packages/ml/README.md diff --git a/packages/orion-ml/Scarb.toml b/packages/ml/Scarb.toml similarity index 68% rename from packages/orion-ml/Scarb.toml rename to packages/ml/Scarb.toml index c3aa10f3b..5a9351457 100644 --- a/packages/orion-ml/Scarb.toml +++ b/packages/ml/Scarb.toml @@ -1,11 +1,15 @@ [package] name = "orion_ml" version = "0.1.0" -edition = "2023_10" +edition = "2023_11" # See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html + [dependencies] +[dev-dependencies] +cairo_test = "2.7.0" + [cairo] -enable-gas=false \ No newline at end of file +enable-gas = false diff --git a/packages/orion-ml/src/lgbm.cairo b/packages/ml/src/lgbm.cairo similarity index 100% rename from packages/orion-ml/src/lgbm.cairo rename to packages/ml/src/lgbm.cairo diff --git a/packages/orion-ml/src/lib.cairo b/packages/ml/src/lib.cairo similarity index 100% rename from packages/orion-ml/src/lib.cairo rename to packages/ml/src/lib.cairo diff --git a/packages/orion-ml/src/xgboost.cairo b/packages/ml/src/xgboost.cairo similarity index 100% rename from packages/orion-ml/src/xgboost.cairo rename to packages/ml/src/xgboost.cairo diff --git a/packages/orion-numbers/.tool-versions b/packages/numbers/.tool-versions similarity index 100% rename from packages/orion-numbers/.tool-versions rename to packages/numbers/.tool-versions diff --git a/packages/orion-numbers/README.md b/packages/numbers/README.md similarity index 100% rename from packages/orion-numbers/README.md rename to packages/numbers/README.md diff --git a/packages/orion-numbers/Scarb.toml b/packages/numbers/Scarb.toml similarity index 100% rename from packages/orion-numbers/Scarb.toml rename to packages/numbers/Scarb.toml diff --git a/packages/orion-numbers/src/f64.cairo b/packages/numbers/src/f64.cairo similarity index 100% rename from packages/orion-numbers/src/f64.cairo rename to packages/numbers/src/f64.cairo diff --git a/packages/orion-numbers/src/f64/comp.cairo b/packages/numbers/src/f64/comp.cairo similarity index 100% rename from packages/orion-numbers/src/f64/comp.cairo rename to packages/numbers/src/f64/comp.cairo diff --git a/packages/orion-numbers/src/f64/erf.cairo b/packages/numbers/src/f64/erf.cairo similarity index 100% rename from packages/orion-numbers/src/f64/erf.cairo rename to packages/numbers/src/f64/erf.cairo diff --git a/packages/orion-numbers/src/f64/helpers.cairo b/packages/numbers/src/f64/helpers.cairo similarity index 100% rename from packages/orion-numbers/src/f64/helpers.cairo rename to packages/numbers/src/f64/helpers.cairo diff --git a/packages/orion-numbers/src/f64/lut.cairo b/packages/numbers/src/f64/lut.cairo similarity index 100% rename from packages/orion-numbers/src/f64/lut.cairo rename to packages/numbers/src/f64/lut.cairo diff --git a/packages/orion-numbers/src/f64/ops.cairo b/packages/numbers/src/f64/ops.cairo similarity index 100% rename from packages/orion-numbers/src/f64/ops.cairo rename to packages/numbers/src/f64/ops.cairo diff --git a/packages/orion-numbers/src/lib.cairo b/packages/numbers/src/lib.cairo similarity index 100% rename from packages/orion-numbers/src/lib.cairo rename to packages/numbers/src/lib.cairo