Skip to content

Commit

Permalink
Merge branch 'main' into mohit/currency_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohiiit authored Dec 22, 2023
2 parents 5d6f6fb + 76ce82b commit 17c21f4
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on: [push, pull_request]

env:
SCARB_VERSION: 2.4.0

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: ${{ env.SCARB_VERSION }}
- name: Check cairo format
run: |
cd flex_marketplace
scarb fmt --check
- name: Build cairo programs
run: |
cd flex_marketplace
scarb build
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on: [push, pull_request]

env:
SCARB_VERSION: 2.4.0
SNFORGE_VERSION: 0.13.0

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: ${{ env.SCARB_VERSION }}
- uses: foundry-rs/setup-snfoundry@v2
with:
starknet-foundry-version: ${{ env.SNFORGE_VERSION }}
- name: Run cairo tests
run: |
cd flex_marketplace
snforge test
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

flex_marketplace/target/
.snfoundry_cache
.snfoundry_cache


flex_marketplace/.snfoundry_cache/

9 changes: 6 additions & 3 deletions flex_marketplace/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[package]
name = "flex"
version = "0.1.0"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
edition = "2023_01"

[dependencies]
starknet = "2.4.0"
Expand All @@ -18,4 +17,8 @@ allowed-libfuncs-list.name = "experimental"
sierra-replace-ids = true

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

[scripts]
test = "snforge test"

19 changes: 19 additions & 0 deletions flex_marketplace/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
mod marketplace {
mod ERC721_flex;

mod launchpad {
mod ERC721_launchpad_migrated;
mod ERC721_launchpad;
mod minter;
}

mod swap {
mod exponential_curve;
mod pair_factory;
mod pair;
}

mod utils {
mod merkle;
mod order_types;
mod reentrancy_guard;
}


mod contract_deployer;
mod currency_manager;
mod execution_manager;
Expand Down

0 comments on commit 17c21f4

Please sign in to comment.