-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(onchain): switch to weekly limit
- Loading branch information
Showing
8 changed files
with
201 additions
and
182 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 |
---|---|---|
@@ -1 +1 @@ | ||
pub mod daily_limit; | ||
pub mod weekly_limit; |
This file was deleted.
Oops, something went wrong.
152 changes: 0 additions & 152 deletions
152
onchain/src/spending_limit/daily_limit/daily_limit.cairo
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pub mod interface; | ||
pub mod weekly_limit; | ||
use interface::{IWeeklyLimitDispatcher, IWeeklyLimitDispatcherTrait}; | ||
|
||
use weekly_limit::WeeklyLimitComponent; |
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,6 @@ | ||
use starknet::account::Call; | ||
|
||
#[starknet::interface] | ||
trait IWeeklyLimit<TState> { | ||
fn get_weekly_limit(self: @TState) -> u256; | ||
} |
Oops, something went wrong.