[Conditional Splitter] Wire up Threshold Logic
crnbarr93 opened this issue · 0 comments
crnbarr93 commented
Description
Using the Threshold
struct described in #435 we should now be able to wire up the message logic for conditional splitting.
Implementation
The following messages should be implemented:
pub struct InstantiateMsg {
pub thresholds: Vec<Threshold>
}
pub enum ExecuteMsg {
Send {},
// Restricted to owner
UpdateThresholds {
pub thresholds: Vec<Threshold>
},
}
pub enum QueryMsg {
AllThresholds {}
// Gets threshold for provided amount
GetThreshold {
pub amount: Uint128,
}
}
These should be sufficient messages for the conditional splitter logic.
Dependencies
Acceptance Criteria
- Definitions for the provided messages
- Handlers for the provided messages
- Unit testing for all provided message handlers