File tree 1 file changed +22
-0
lines changed
src/extensions/interfaces
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,28 @@ pub struct SaleRateState {
33
33
pub last_virtual_order_time : u64
34
34
}
35
35
36
+ #[derive(Serde , Copy , Drop )]
37
+ pub struct UpdateSaleRateCallbackData {
38
+ pub salt : felt252 ,
39
+ pub order_key : OrderKey ,
40
+ pub sale_rate_delta : i129 ,
41
+ }
42
+
43
+ #[derive(Serde , Copy , Drop )]
44
+ pub struct CollectProceedsCallbackData {
45
+ pub salt : felt252 ,
46
+ pub order_key : OrderKey ,
47
+ }
48
+
49
+ #[derive(Serde , Copy , Drop )]
50
+ pub enum ForwardCallbackData {
51
+ // Returns an i129 representing the token delta required to update the sale rate, e.g. positive
52
+ // for increases and negative for decreases
53
+ UpdateSaleRate : UpdateSaleRateCallbackData ,
54
+ // Returns a u128 representing the amount of proceeds collected
55
+ CollectProceeds : CollectProceedsCallbackData
56
+ }
57
+
36
58
#[starknet:: interface]
37
59
pub trait ITWAMM <TContractState > {
38
60
// Return the current state of the given order
You can’t perform that action at this time.
0 commit comments