-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* delete old files * upgraded scarb version in toml * added fact registry contract and facade * update imports and cairo version syntax - also new scarb fmt format * re-organized contract/repo defs * created pricing utils for specific helpers * refine tests.cairo module defs * remove old test * update tests * update facades * Update comments and derive statement * switch back to first round deploying with vault - implemented refresh_round_pricing_data` using newer facts2 * fix caller not owner bug * Comments * moved internal function to pricing_utils formatting * rm comments * started fixing simulations and smoke tests * added create Job Request helper if round is open, upper bound is right before auction start date, if round is running, upper bound is right before settlement date * added test for first round starting * brought back time shift if auction is delayed only if auction 1 starts later than expected * added more tests for consecutive round refreshing * update readme * update mock identifiers * formatting * added getter for (earliest) pricing data request to fulfill * removed fact registry - change name `generate_job_id()` -> `generate_request_id()` * added constants * Change pricing data points to pricing data * update fulfill request logic and surrounding context * move pricing data struct to option round * fix test bugs * switched callback to reverting instead of returning false * test cleaning/refining * comments * fix test gas
- Loading branch information
1 parent
1c33f73
commit 814a6fe
Showing
115 changed files
with
7,888 additions
and
3,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
scarb 2.6.4 | ||
scarb 2.8.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
[package] | ||
name = "pitch_lake_starknet" | ||
name = "pitch_lake" | ||
description = "Oiler PitchLake" | ||
version = "0.1.0" | ||
cairo-version = "2.2.0" | ||
|
||
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest | ||
|
||
[[target.starknet-contract]] | ||
sierra = true | ||
casm = true | ||
|
||
[dependencies] | ||
starknet = "2.1.0" | ||
openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", tag = "v0.11.0" } | ||
starknet = "2.8.2" | ||
openzeppelin_token = "0.16.0" | ||
openzeppelin_utils = "0.16.0" | ||
|
||
[dev-dependencies] | ||
cairo_test = "2.8.2" | ||
|
||
[tool.snforge] | ||
# exit_first = true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
export const ABI = [ | ||
{ | ||
"type": "impl", | ||
"name": "FactRegistryImpl", | ||
"interface_name": "pitch_lake::fact_registry::interface::IFactRegistry" | ||
}, | ||
{ | ||
"type": "struct", | ||
"name": "core::array::Span::<core::felt252>", | ||
"members": [ | ||
{ | ||
"name": "snapshot", | ||
"type": "@core::array::Array::<core::felt252>" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "struct", | ||
"name": "pitch_lake::fact_registry::interface::JobRequestParams", | ||
"members": [ | ||
{ | ||
"name": "twap", | ||
"type": "(core::integer::u64, core::integer::u64)" | ||
}, | ||
{ | ||
"name": "volatility", | ||
"type": "(core::integer::u64, core::integer::u64)" | ||
}, | ||
{ | ||
"name": "reserve_price", | ||
"type": "(core::integer::u64, core::integer::u64)" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "struct", | ||
"name": "pitch_lake::fact_registry::interface::JobRequest", | ||
"members": [ | ||
{ | ||
"name": "identifiers", | ||
"type": "core::array::Span::<core::felt252>" | ||
}, | ||
{ | ||
"name": "params", | ||
"type": "pitch_lake::fact_registry::interface::JobRequestParams" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "pitch_lake::fact_registry::interface::IFactRegistry", | ||
"items": [ | ||
{ | ||
"type": "function", | ||
"name": "get_fact", | ||
"inputs": [ | ||
{ | ||
"name": "job_id", | ||
"type": "core::felt252" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "core::array::Span::<core::felt252>" | ||
} | ||
], | ||
"state_mutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "set_fact", | ||
"inputs": [ | ||
{ | ||
"name": "job_request", | ||
"type": "pitch_lake::fact_registry::interface::JobRequest" | ||
}, | ||
{ | ||
"name": "job_data", | ||
"type": "core::array::Span::<core::felt252>" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "core::felt252" | ||
} | ||
], | ||
"state_mutability": "external" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "constructor", | ||
"name": "constructor", | ||
"inputs": [] | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "pitch_lake::fact_registry::contract::FactRegistry::Event", | ||
"kind": "enum", | ||
"variants": [] | ||
} | ||
] as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export { ABI as vaultABI} from "./vault" | ||
export { ABI as erc20ABI} from "./erc20" | ||
export { ABI as optionRoundABI} from "./optionRound" | ||
export {ABI as marketAggregatorABI} from "./marketAggregator" | ||
export { ABI as vaultABI } from "./vault"; | ||
export { ABI as erc20ABI } from "./erc20"; | ||
export { ABI as optionRoundABI } from "./optionRound"; | ||
export { ABI as factRegistryABI } from "./factRegistry"; | ||
|
Oops, something went wrong.