Skip to content

Commit

Permalink
Implement leaderboard model/entity and functions (#100)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Dec 3, 2024
1 parent 2fc7eee commit d1aeefa
Show file tree
Hide file tree
Showing 15 changed files with 6,244 additions and 931 deletions.
42 changes: 42 additions & 0 deletions Scarb.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,52 @@
# Code generated by scarb DO NOT EDIT.
version = 1

[[package]]
name = "alexandria_data_structures"
version = "0.2.0"
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
dependencies = [
"alexandria_encoding",
]

[[package]]
name = "alexandria_encoding"
version = "0.1.0"
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
dependencies = [
"alexandria_math",
"alexandria_numeric",
]

[[package]]
name = "alexandria_math"
version = "0.2.0"
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
dependencies = [
"alexandria_data_structures",
]

[[package]]
name = "alexandria_numeric"
version = "0.1.0"
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
dependencies = [
"alexandria_math",
]

[[package]]
name = "alexandria_sorting"
version = "0.1.0"
source = "git+https://github.com/keep-starknet-strange/alexandria.git?tag=cairo-v2.6.0#946e6e2f9d390ad9f345882a352c0dd6f02ef3ad"
dependencies = [
"alexandria_data_structures",
]

[[package]]
name = "bytebeasts"
version = "0.1.0"
dependencies = [
"alexandria_sorting",
"dojo",
]

Expand Down
2 changes: 2 additions & 0 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ move = "./scripts/move.sh"

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

[[target.dojo]]
Loading

0 comments on commit d1aeefa

Please sign in to comment.