-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CL Hooks]: Add hooks source and clean up source code folder #6860
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet
x/concentrated-liquidity/testcontracts/contract-sources/hooks/src/contract.rs
Outdated
Show resolved
Hide resolved
|
||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)] | ||
pub struct State { | ||
pub count: i64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we keep a counter for this contract?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unused in this case but will likely be important for #6862 so I had just left it there
lower_tick: _, | ||
upper_tick: _, | ||
} => { | ||
let mut response = Response::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that the following lines are duplicated regardless of which message (hook) it is, can we create a method for these lines?
What is the purpose of the change
This PR adds the source code used for testing in #6859. It also cleans up the testcontracts folder to be more approachable/readable.
This is done in a separate PR to avoid cluttering the base PR since the changes are light & state compatible but the diff is large