Skip to content

Commit

Permalink
Bump dojo rc1 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar authored Nov 7, 2024
1 parent 89172a1 commit 7f29711
Show file tree
Hide file tree
Showing 111 changed files with 27 additions and 12,834 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
pull_request:

env:
DOJO_VERSION: v1.0.0-alpha.19
SCARB_VERSION: 2.7.0
DOJO_VERSION: v1.0.0-rc.1
SCARB_VERSION: 2.8.4

jobs:
check:
Expand Down Expand Up @@ -99,25 +99,3 @@ jobs:
- name: Test
run: sozo test --package origami_security
shell: bash

token:
needs: [check, build]
runs-on: ubuntu-latest
name: Test origami_token
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test
run: sozo test --package origami_token
shell: bash

governance:
needs: [check, build]
runs-on: ubuntu-latest
name: Test origami_governance
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Test
run: sozo test --package origami_governance
shell: bash
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scarb 2.7.0
scarb 2.8.4
33 changes: 7 additions & 26 deletions Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,34 @@ version = 1
[[package]]
name = "cubit"
version = "1.3.0"
source = "git+https://github.com/dojoengine/cubit?branch=update_to_2.7.0#075bf5a317452cd59aaf5bd1c044689220361c66"

[[package]]
name = "dojo"
version = "1.0.0-alpha.4"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-alpha.19#ef696ea9bbaa22d3f6db392d9692b4821578c23c"
source = "git+https://github.com/bal7hazar/cubit?branch=cairo-2.8.4#6bce623d5c735c097be47a4045c0e0432bad38e7"

[[package]]
name = "origami_algebra"
version = "1.0.0-alpha.19"
version = "1.0.0-rc.1"
dependencies = [
"cubit",
]

[[package]]
name = "origami_defi"
version = "1.0.0-alpha.19"
version = "1.0.0-rc.1"
dependencies = [
"cubit",
]

[[package]]
name = "origami_governance"
version = "1.0.0-alpha.19"
dependencies = [
"dojo",
]

[[package]]
name = "origami_map"
version = "1.0.0-alpha.19"
version = "1.0.0-rc.1"

[[package]]
name = "origami_random"
version = "1.0.0-alpha.19"
version = "1.0.0-rc.1"

[[package]]
name = "origami_rating"
version = "1.0.0-alpha.19"
version = "1.0.0-rc.1"

[[package]]
name = "origami_security"
version = "1.0.0-alpha.19"

[[package]]
name = "origami_token"
version = "1.0.0-alpha.19"
dependencies = [
"dojo",
]
version = "1.0.0-rc.1"
12 changes: 5 additions & 7 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ members = [
"crates/random",
"crates/rating",
"crates/security",
"crates/token",
"crates/governance",
]

[workspace.package]
version = "1.0.0-alpha.19"
version = "1.0.0-rc.1"

[workspace.dependencies]
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-alpha.19" }
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-rc.1" }
# dojo = { path = "../dojo/crates/dojo-core" }
cubit = { git = "https://github.com/dojoengine/cubit", branch = "update_to_2.7.0" }
starknet = "^2.7.0"
cairo_test = "^2.7.0"
cubit = { git = "https://github.com/bal7hazar/cubit", branch = "cairo-2.8.4" }
starknet = "^2.8.4"
cairo_test = "^2.8.4"
# Scripts are not supported for virtual workspaces.
2 changes: 1 addition & 1 deletion crates/defi/src/auction/gda.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ mod tests {
mod discrete {
// Local imports

use super::{Fixed, FixedTrait};
use super::FixedTrait;
use super::{assert_approx_equal, TOLERANCE};
use super::super::{DiscreteGDA, DiscreteGDATrait};

Expand Down
2 changes: 1 addition & 1 deletion crates/defi/src/auction/helpers.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn from_days_fp(x: Fixed) -> Fixed {
mod tests {
// External imports

use cubit::f128::types::fixed::{Fixed, FixedTrait};
use cubit::f128::types::fixed::FixedTrait;

// Local imports

Expand Down
6 changes: 2 additions & 4 deletions crates/defi/src/auction/vrgda.cairo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// External imports

use cubit::f128::math::ops::{ln, abs, exp};
use cubit::f128::math::ops::ln;
use cubit::f128::types::fixed::{Fixed, FixedTrait};

// Based on https://www.paradigm.xyz/2022/08/vrgda
Expand Down Expand Up @@ -153,8 +153,7 @@ mod tests {
mod linear {
// Local imports

use cubit::f128::types::fixed::{Fixed, FixedTrait, HALF_u128};
use super::{to_days_fp, from_days_fp};
use cubit::f128::types::fixed::{FixedTrait, HALF_u128};
use super::assert_rel_approx_eq;
use super::super::{LinearVRGDA, VRGDATrait};

Expand Down Expand Up @@ -197,7 +196,6 @@ mod tests {
// Local imports

use super::{Fixed, FixedTrait};
use super::{to_days_fp, from_days_fp};
use super::assert_rel_approx_eq;
use super::super::{LogisticVRGDA, VRGDATrait};

Expand Down
106 changes: 0 additions & 106 deletions crates/governance/EXAMPLES.md

This file was deleted.

Loading

0 comments on commit 7f29711

Please sign in to comment.