-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add native withdraws to assetManager for archway
- Loading branch information
1 parent
6cc7551
commit e5f14b0
Showing
8 changed files
with
285 additions
and
2 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
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,54 @@ | ||
use cosmwasm_schema::cw_serde; | ||
use cosmwasm_std::Decimal; | ||
use schemars::JsonSchema; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[cw_serde] | ||
pub enum StakingQueryMsg { | ||
ConfigInfo {}, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)] | ||
pub struct ConfigResponse { | ||
/// Should be multi-sig, is able to update the config | ||
pub admin: String, | ||
/// Should be single-sig, is able to pause the contract | ||
pub pause_admin: String, | ||
/// This is the denomination we can stake (and only one we accept for payments) | ||
pub bond_denom: String, | ||
/// Liquid token address | ||
pub liquid_token_addr: String, | ||
/// Swap contract address | ||
pub swap_contract_addr: String, | ||
/// Liquid Treasury contract address | ||
pub treasury_contract_addr: String, | ||
/// Team wallet address | ||
pub team_wallet_addr: String, | ||
/// percentage of commission taken off of staking rewards | ||
pub commission_percentage: u16, | ||
/// percentage of rewards for the team | ||
pub team_percentage: u16, | ||
/// percentage of rewards for the liquidity providers | ||
pub liquidity_percentage: u16, | ||
/// Delegations preferences for a whitelist of validators, each validator has a delegation percentage | ||
pub delegations: Vec<DelegationPercentage>, | ||
/// contract state (active/paused) | ||
pub contract_state: bool, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)] | ||
pub struct DelegationPercentage { | ||
pub validator: String, | ||
pub percentage: u16, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)] | ||
#[serde(rename_all = "snake_case")] | ||
pub enum Cw20HookMsg { | ||
/// Sell a given amount of asset | ||
Swap { | ||
belief_price: Option<Decimal>, | ||
max_spread: Option<Decimal>, | ||
to: Option<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
pub mod constants; | ||
pub mod contract; | ||
mod error; | ||
pub mod external; | ||
pub mod helpers; | ||
pub mod state; | ||
pub use crate::error::ContractError; |
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