Skip to content

Commit d2569df

Browse files
chore: remove workspace, change to single package repo
1 parent c4aaec4 commit d2569df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+24
-48
lines changed

Scarb.toml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,44 @@
1-
[workspace]
2-
members = ["workspace/apps/staking/contracts"]
1+
[package]
2+
name = "staking"
3+
version = "1.14.5"
4+
edition = "2024_07"
35

4-
[workspace.dependencies]
6+
[dependencies]
57
starknet = "2.12.0"
6-
assert_macros = "2.12.0"
78
openzeppelin = "2.0.0"
8-
snforge_std = "0.49.0"
99
starkware_utils = { git = "https://github.com/starkware-libs/starkware-starknet-utils", rev = "e1955423808045de868987b8fb0b43f5cbdf5699" }
10+
11+
[dev-dependencies]
12+
assert_macros = "2.12.0"
13+
snforge_std = "0.49.0"
1014
starkware_utils_testing = { git = "https://github.com/starkware-libs/starkware-starknet-utils", rev = "e1955423808045de868987b8fb0b43f5cbdf5699" }
1115

1216
[scripts]
1317
test = "snforge test"
1418

19+
[lib]
20+
1521
[profile.dev.cairo]
1622
unstable-add-statements-code-locations-debug-info = true
1723
unstable-add-statements-functions-debug-info = true
1824
inlining-strategy = "avoid"
1925

20-
[[workspace.tool.snforge.fork]]
26+
[[tool.snforge.fork]]
2127
name = "MAINNET_LATEST"
2228

2329
url = "https://starknet-mainnet.public.blastapi.io/rpc/v0_8"
2430

2531
block_id.tag = "latest"
2632

27-
[workspace.tool.scarb]
33+
[tool.scarb]
2834
allow-prebuilt-plugins = ["snforge_std"]
35+
36+
[[test]]
37+
name = "contracts_unittest"
38+
build-external-contracts = ["starkware_utils::erc20::erc20_mocks::DualCaseERC20Mock"]
39+
40+
[tool.fmt]
41+
sort-module-level-items = true
42+
43+
[features]
44+
fork_test = []

scripts/check_all_flows_have_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pprint import pprint
77

88
CONTRACTS_FOLDER: Path = (
9-
Path(__file__).parent.parent / "workspace/apps/staking/contracts"
9+
Path(__file__).parent.parent
1010
)
1111

1212
FLOWS_FILE: Path = CONTRACTS_FOLDER / "src/flow_test/flows.cairo"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)