Skip to content

Commit d1aeefa

Browse files
beeguy74saimeuntBosun-Josh121
authored
Implement leaderboard model/entity and functions (#100)
* Dependencies and leaderboardEntry class * leaderboard behavior * dynamycally update entry * deleted unnecessary comments * switched Alexandria to 2.6.0 and add good methods * remove entry test * removed an unnecessary dependency * getter functions and necessary tests with negative scenarious as well * timestamp update in remove_entry function * typo * score calculation * manifests * refactor and rename fn upgrade_entry_stats and add negative test. Leaderboard's test file moved to test directory. * Add tests for tournament_system (#101) * Add tests for tournament_system * Quickfixes * sozo build * SeasonModel & Tests (#103) * branch * sozo build * refactor and rename fn upgrade_entry_stats and add negative test. Leaderboard's test file moved to test directory. --------- Co-authored-by: saimeunt <[email protected]> Co-authored-by: Bosun <[email protected]>
1 parent 2fc7eee commit d1aeefa

15 files changed

+6244
-931
lines changed

Scarb.lock

+42
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,52 @@
11
# Code generated by scarb DO NOT EDIT.
22
version = 1
33

4+
[[package]]
5+
name = "alexandria_data_structures"
6+
version = "0.2.0"
7+
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
8+
dependencies = [
9+
"alexandria_encoding",
10+
]
11+
12+
[[package]]
13+
name = "alexandria_encoding"
14+
version = "0.1.0"
15+
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
16+
dependencies = [
17+
"alexandria_math",
18+
"alexandria_numeric",
19+
]
20+
21+
[[package]]
22+
name = "alexandria_math"
23+
version = "0.2.0"
24+
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
25+
dependencies = [
26+
"alexandria_data_structures",
27+
]
28+
29+
[[package]]
30+
name = "alexandria_numeric"
31+
version = "0.1.0"
32+
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
33+
dependencies = [
34+
"alexandria_math",
35+
]
36+
37+
[[package]]
38+
name = "alexandria_sorting"
39+
version = "0.1.0"
40+
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
41+
dependencies = [
42+
"alexandria_data_structures",
43+
]
44+
445
[[package]]
546
name = "bytebeasts"
647
version = "0.1.0"
748
dependencies = [
49+
"alexandria_sorting",
850
"dojo",
951
]
1052

Scarb.toml

+2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ move = "./scripts/move.sh"
1313

1414
[dependencies]
1515
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-alpha.5" }
16+
# Alexandria versions with tag greater that "cairo-v2.5.4" conflict with dojo engine
17+
alexandria_sorting = { git = "https://github.com/keep-starknet-strange/alexandria.git", tag = "cairo-v2.6.0" }
1618

1719
[[target.dojo]]

0 commit comments

Comments
 (0)