Skip to content

Commit

Permalink
Delete unused handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Oct 7, 2023
1 parent a2305ee commit e8f2a52
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 114 deletions.
2 changes: 1 addition & 1 deletion framework/scripts/src/bin/full_deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ use abstract_interface::{Abstract, VersionControl};

use abstract_interface_scripts::{assert_wallet_balance, DeploymentStatus, SUPPORTED_CHAINS};
use clap::Parser;
use cw_orch::daemon::{ChainKind, NetworkInfo};
use cw_orch::{
deploy::Deploy,
prelude::{
networks::{parse_network, ChainInfo},
*,
},
};
use cw_orch::daemon::{ChainKind, NetworkInfo};
use tokio::runtime::Runtime;

pub const ABSTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");
Expand Down
37 changes: 1 addition & 36 deletions modules/contracts/apps/betting/src/handlers/instantiate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub const INSTANTIATE_REPLY_ID: u64 = 1u64;

pub fn instantiate_handler(
deps: DepsMut,
env: Env,
_env: Env,
_info: MessageInfo,
app: BetApp,
msg: BetInstantiateMsg,
Expand All @@ -26,40 +26,5 @@ pub fn instantiate_handler(
config.validate(deps.as_ref())?;
CONFIG.save(deps.storage, &config)?;


// let lp_token_name: String = msg
// .token_name
// .unwrap_or_else(|| String::from(DEFAULT_LP_TOKEN_NAME));
//
// let lp_token_symbol: String = msg
// .token_symbol
// .unwrap_or_else(|| String::from(DEFAULT_LP_TOKEN_SYMBOL));

// RAKE.save(deps.storage, &Fee::new(msg.fee)?)?;
Ok(app.tag_response(Response::new(), "instantiate"))

// Ok(Response::new().add_submessage(SubMsg {
// // Create LP token
// msg: WasmMsg::Instantiate {
// admin: None,
// code_id: msg.token_code_id,
// msg: to_binary(&TokenInstantiateMsg {
// name: lp_token_name.clone(),
// symbol: lp_token_symbol,
// decimals: 6,
// initial_balances: vec![],
// mint: Some(MinterResponse {
// minter: env.contract.address.to_string(),
// cap: None,
// }),
// marketing: None,
// })?,
// funds: vec![],
// label: format!("Abstract ETF Shares: {}", lp_token_name),
// }
// .into(),
// gas_limit: None,
// id: INSTANTIATE_REPLY_ID,
// reply_on: ReplyOn::Success,
// }))
}
3 changes: 0 additions & 3 deletions modules/contracts/apps/betting/src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
pub mod execute;
pub mod instantiate;
pub mod query;
pub mod receive;
pub mod reply;

pub use crate::handlers::{
execute::execute_handler, instantiate::instantiate_handler, query::query_handler,
// receive::receive_cw20, reply::*,
};
43 changes: 0 additions & 43 deletions modules/contracts/apps/betting/src/handlers/receive.rs

This file was deleted.

27 changes: 0 additions & 27 deletions modules/contracts/apps/betting/src/handlers/reply.rs

This file was deleted.

4 changes: 0 additions & 4 deletions modules/contracts/apps/etf/src/handlers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// pub mod execute;
// pub mod instantiate;
// pub mod migrate;
// pub mod query;
pub mod execute;
pub mod instantiate;
pub mod query;
Expand Down

0 comments on commit e8f2a52

Please sign in to comment.