Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: workspace/apps/staking/contracts/coverage/coverage.lcov
files: coverage/coverage.lcov
fail_ci_if_error: true

- name: Check formatting
Expand Down
32 changes: 25 additions & 7 deletions Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,46 @@
[workspace]
members = ["workspace/apps/staking/contracts"]
[package]
name = "staking"
version = "1.14.5"
edition = "2024_07"

[workspace.dependencies]
[dependencies]
starknet = "2.12.0"
assert_macros = "2.12.0"
openzeppelin = "2.0.0"
snforge_std = "0.49.0"
starkware_utils = { git = "https://github.com/starkware-libs/starkware-starknet-utils", rev = "e1955423808045de868987b8fb0b43f5cbdf5699" }

[dev-dependencies]
assert_macros = "2.12.0"
snforge_std = "0.49.0"
starkware_utils_testing = { git = "https://github.com/starkware-libs/starkware-starknet-utils", rev = "e1955423808045de868987b8fb0b43f5cbdf5699" }

[scripts]
test = "snforge test"

[lib]

[[target.starknet-contract]]

[profile.dev.cairo]
unstable-add-statements-code-locations-debug-info = true
unstable-add-statements-functions-debug-info = true
inlining-strategy = "avoid"

[[workspace.tool.snforge.fork]]
[[tool.snforge.fork]]
name = "MAINNET_LATEST"

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

block_id.tag = "latest"

[workspace.tool.scarb]
[tool.scarb]
allow-prebuilt-plugins = ["snforge_std"]

[[test]]
name = "contracts_unittest"
build-external-contracts = ["starkware_utils::erc20::erc20_mocks::DualCaseERC20Mock"]

[tool.fmt]
sort-module-level-items = true

[features]
fork_test = []
2 changes: 1 addition & 1 deletion scripts/check_all_flows_have_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pprint import pprint

CONTRACTS_FOLDER: Path = (
Path(__file__).parent.parent / "workspace/apps/staking/contracts"
Path(__file__).parent.parent
)

FLOWS_FILE: Path = CONTRACTS_FOLDER / "src/flow_test/flows.cairo"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 0 additions & 40 deletions workspace/apps/staking/contracts/Scarb.toml

This file was deleted.