Skip to content

Commit

Permalink
removes duplicate mocks and contracts, fixes bug with zeroable module…
Browse files Browse the repository at this point in the history
… import, updates test cases
  • Loading branch information
chris-de-leon-cll committed Feb 29, 2024
1 parent 7717098 commit 718003c
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 587 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ test-integration-contracts: build-ts env-devnet-hardhat
cd packages-ts/starknet/ && \
yarn test

.PHONY test-examples
test-examples:
cd ./examples/contracts/aggregator_consumer && \
snforge test

.PHONY: test-integration-gauntlet
# TODO: fix example
# cd packages-ts/starknet-gauntlet-example/ && \
Expand Down
1 change: 0 additions & 1 deletion examples/contracts/aggregator_consumer/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ name = "aggregator_consumer"
version = "0.1.0"
dependencies = [
"chainlink",
"openzeppelin",
"snforge_std",
]

Expand Down
7 changes: 4 additions & 3 deletions examples/contracts/aggregator_consumer/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
[package]
name = "aggregator_consumer"
version = "0.1.0"
edition = "2023_11"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", tag = "v0.9.0" }
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.18.0" }
chainlink = { path = "../../../contracts" }
starknet = "2.5.4"

[[target.starknet-contract]]
casm = true
build-external-contracts = [
"chainlink::emergency::sequencer_uptime_feed::SequencerUptimeFeed",
"chainlink::ocr2::mocks::mock_aggregator::MockAggregator",
]
1 change: 0 additions & 1 deletion examples/contracts/aggregator_consumer/src/emergency.cairo

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions examples/contracts/aggregator_consumer/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
pub mod libraries;
pub mod emergency;
pub mod mocks;
pub mod ocr2;

1 change: 0 additions & 1 deletion examples/contracts/aggregator_consumer/src/libraries.cairo

This file was deleted.

Loading

0 comments on commit 718003c

Please sign in to comment.