-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/add-options-fnc
- Loading branch information
Showing
14 changed files
with
705 additions
and
439 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
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 |
---|---|---|
|
@@ -13,4 +13,6 @@ Cargo.lock | |
.env | ||
|
||
vendor/ | ||
.DS_Store | ||
.DS_Store | ||
.snfoundry_cache/ | ||
account* |
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,6 +1,20 @@ | ||
# Code generated by scarb DO NOT EDIT. | ||
version = 1 | ||
|
||
[[package]] | ||
name = "cubit" | ||
version = "1.3.0" | ||
source = "git+https://github.com/akhercha/cubit.git?branch=chore%2Fcairo_upgrade#d3869a3f0c47e5ed229bbbfe2fce3fc0510cbc8a" | ||
|
||
[[package]] | ||
name = "governance" | ||
version = "0.2.0" | ||
dependencies = [ | ||
"cubit", | ||
"snforge_std", | ||
] | ||
|
||
[[package]] | ||
name = "snforge_std" | ||
version = "0.14.0" | ||
source = "git+https://github.com/foundry-rs/starknet-foundry.git#a1caebbfffd00e612c09ed89da006f6c48a92fd9" |
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,16 @@ | ||
use cubit::f128::types::fixed::{Fixed, FixedTrait}; | ||
use starknet::ContractAddress; | ||
use core::option::OptionTrait; | ||
|
||
type LPTAddress = ContractAddress; | ||
type OptionSide = u8; | ||
type OptionType = u8; | ||
type Timestamp = u64; // In seconds, Block timestamps are also u64 | ||
|
||
type Int = u128; | ||
|
||
type Maturity = felt252; | ||
|
||
type Volatility = Fixed; | ||
type Strike = Fixed; | ||
|
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,4 +1,7 @@ | ||
mod airdrop; | ||
mod amm_types { | ||
mod basic; | ||
} | ||
mod constants; | ||
mod contract; | ||
mod merkle_tree; | ||
|
Oops, something went wrong.