Skip to content

Commit

Permalink
- Updated the codebase to the latest Cairo syntax version.
Browse files Browse the repository at this point in the history
- Updated the agreement contract to become upgradeable.
- Simplified and improved the crime records contract.
  • Loading branch information
OkoliEvans committed Oct 24, 2024
1 parent 2cec458 commit 61a8ee0
Show file tree
Hide file tree
Showing 41 changed files with 380 additions and 9,041 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target
agree_account.json
agree_keystore.json
recorder_account.json
recorder_keystore.json
File renamed without changes.
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
scarb 2.8.4
starknet-foundry 0.32.0
128 changes: 128 additions & 0 deletions Scarb.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Code generated by scarb DO NOT EDIT.
version = 1

[[package]]
name = "custos_smart_contracts"
version = "0.1.0"
dependencies = [
"openzeppelin",
"snforge_std",
]

[[package]]
name = "openzeppelin"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"
dependencies = [
"openzeppelin_access",
"openzeppelin_account",
"openzeppelin_finance",
"openzeppelin_governance",
"openzeppelin_introspection",
"openzeppelin_merkle_tree",
"openzeppelin_presets",
"openzeppelin_security",
"openzeppelin_token",
"openzeppelin_upgrades",
"openzeppelin_utils",
]

[[package]]
name = "openzeppelin_access"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"
dependencies = [
"openzeppelin_introspection",
"openzeppelin_utils",
]

[[package]]
name = "openzeppelin_account"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"
dependencies = [
"openzeppelin_introspection",
"openzeppelin_utils",
]

[[package]]
name = "openzeppelin_finance"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"
dependencies = [
"openzeppelin_access",
"openzeppelin_token",
]

[[package]]
name = "openzeppelin_governance"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"
dependencies = [
"openzeppelin_access",
"openzeppelin_account",
"openzeppelin_introspection",
"openzeppelin_token",
]

[[package]]
name = "openzeppelin_introspection"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"

[[package]]
name = "openzeppelin_merkle_tree"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"

[[package]]
name = "openzeppelin_presets"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"
dependencies = [
"openzeppelin_access",
"openzeppelin_account",
"openzeppelin_finance",
"openzeppelin_introspection",
"openzeppelin_token",
"openzeppelin_upgrades",
"openzeppelin_utils",
]

[[package]]
name = "openzeppelin_security"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"

[[package]]
name = "openzeppelin_token"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"
dependencies = [
"openzeppelin_account",
"openzeppelin_introspection",
"openzeppelin_utils",
]

[[package]]
name = "openzeppelin_upgrades"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"

[[package]]
name = "openzeppelin_utils"
version = "0.18.0"
source = "git+https://github.com/openzeppelin/cairo-contracts?tag=v0.18.0#2f37306b490e63c0afa9e33ad192ba428141b487"

[[package]]
name = "snforge_scarb_plugin"
version = "0.32.0"
source = "git+https://github.com/foundry-rs/starknet-foundry?tag=v0.32.0#3817c903b640201c72e743b9bbe70a97149828a2"

[[package]]
name = "snforge_std"
version = "0.32.0"
source = "git+https://github.com/foundry-rs/starknet-foundry?tag=v0.32.0#3817c903b640201c72e743b9bbe70a97149828a2"
dependencies = [
"snforge_scarb_plugin",
]
6 changes: 3 additions & 3 deletions custos_smart_contracts/Scarb.toml → Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ edition = "2023_11"
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.6.4"
openzeppelin = { git = "https://github.com/openzeppelin/cairo-contracts", tag = "v0.14.0" }
starknet = "2.8.4"
openzeppelin = { git = "https://github.com/openzeppelin/cairo-contracts", tag = "v0.18.0" }

[[target.starknet-contract]]
casm = true
# sierra = false


[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.22.0" }
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.32.0" }

[scripts]
test = "snforge test"
Expand Down
3 changes: 0 additions & 3 deletions custos_dapp/.eslintrc.json

This file was deleted.

36 changes: 0 additions & 36 deletions custos_dapp/.gitignore

This file was deleted.

36 changes: 0 additions & 36 deletions custos_dapp/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions custos_dapp/next.config.mjs

This file was deleted.

Loading

0 comments on commit 61a8ee0

Please sign in to comment.