-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove oracle v1, v2 contracts (#124)
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ v ✰ Thanks for creating a PR! ✰ v Before smashing the submit button please review the checkboxes. v If a checkbox is n/a - please still include it but + a little note why ☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --> ## Overview Removed the code related to oracle V1, V2 contracts. It won't update them after this migration. closes: #XXXX ## What changes have been made in this PR? - [ ] ## Checklist --- - [ ] Appropriate labels applied - [ ] Targeted PR against correct branch - [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. - [ ] Wrote unit and integration - [ ] Updated relevant documentation
- Loading branch information
Showing
11 changed files
with
17 additions
and
128 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,40 +1,11 @@ | ||
// Types for the Oracle contract | ||
use cosmwasm_schema::cw_serde; | ||
use cosmwasm_std::{Binary, Decimal}; | ||
|
||
pub const ORACLE_REDEMPTION_RATE_KEY: &str = "milkTIA_redemption_rate"; | ||
pub const ORACLE_PURCHASE_RATE_KEY: &str = "milkTIA_purchase_rate"; | ||
|
||
#[cw_serde] | ||
pub enum Oracle { | ||
PostMetric { | ||
key: String, | ||
value: String, | ||
metric_type: MetricType, | ||
update_time: u64, | ||
block_height: u64, | ||
attributes: Option<Binary>, | ||
}, | ||
PostRates { | ||
denom: String, | ||
purchase_rate: String, | ||
redemption_rate: String, | ||
}, | ||
} | ||
|
||
#[cw_serde] | ||
pub enum MetricType { | ||
RedemptionRate, | ||
PurchaseRate, | ||
Other(String), | ||
} | ||
|
||
#[cw_serde] | ||
pub struct RedemptionRateAttributes { | ||
pub sttoken_denom: String, | ||
} | ||
|
||
#[cw_serde] | ||
pub struct PurchaseRateAttributes { | ||
pub sttoken_denom: String, | ||
} | ||
} |
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
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