Skip to content

Commit

Permalink
rm commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Mar 13, 2023
1 parent bca877c commit 7bdf091
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,45 +34,6 @@ fn get_pre_propose_info(
}
}

// fn _get_default_token_dao_proposal_module_instantiate(app: &mut App) -> InstantiateMsg {
// let quorum = PercentageThreshold::Majority {};
// let voting_strategy = VotingStrategy::SingleChoice { quorum };
//
// InstantiateMsg {
// voting_strategy,
// max_voting_period: Duration::Time(604800), // One week.
// min_voting_period: None,
// only_members_execute: true,
// allow_revoting: false,
// pre_propose_info: get_pre_propose_info(
// app,
// Some(UncheckedDepositInfo {
// denom: cwd_voting::deposit::DepositToken::VotingModuleToken {},
// amount: Uint128::new(10_000_000),
// refund_policy: DepositRefundPolicy::OnlyPassed,
// }),
// false,
// ),
// close_proposal_on_execution_failure: true,
// }
// }

// // Same as above but no proposal deposit.
// fn _get_default_non_token_dao_proposal_module_instantiate(app: &mut App) -> InstantiateMsg {
// let quorum = PercentageThreshold::Majority {};
// let voting_strategy = VotingStrategy::SingleChoice { quorum };
//
// InstantiateMsg {
// voting_strategy,
// max_voting_period: Duration::Time(604800), // One week.
// min_voting_period: None,
// only_members_execute: true,
// allow_revoting: false,
// pre_propose_info: get_pre_propose_info(app, None, false),
// close_proposal_on_execution_failure: true,
// }
// }

pub(crate) fn neutron_vault_contract() -> Box<dyn Contract<NeutronMsg>> {
let contract: ContractWrapper<_, _, _, _, _, _, NeutronMsg> = ContractWrapper::new_with_empty(
neutron_vault::contract::execute,
Expand Down Expand Up @@ -216,80 +177,3 @@ pub(crate) fn instantiate_with_native_bonded_balances_governance(

core_addr
}

// pub fn _instantiate_with_cw4_groups_governance(
// app: &mut App,
// proposal_module_instantiate: InstantiateMsg,
// initial_weights: Option<Vec<Cw20Coin>>,
// ) -> Addr {
// let proposal_module_code_id = app.store_code(proposal_multiple_contract());
// let cw4_id = app.store_code(cw4_contract());
// let core_id = app.store_code(cwd_core_contract());
// let votemod_id = app.store_code(cw4_contract());
//
// let initial_weights = initial_weights.unwrap_or_else(|| {
// vec![Cw20Coin {
// address: CREATOR_ADDR.to_string(),
// amount: Uint128::new(1),
// }]
// });
//
// // Remove duplicates so that we can test duplicate voting.
// let initial_weights: Vec<cw4::Member> = {
// let mut already_seen = vec![];
// initial_weights
// .into_iter()
// .filter(|Cw20Coin { address, .. }| {
// if already_seen.contains(address) {
// false
// } else {
// already_seen.push(address.clone());
// true
// }
// })
// .map(|Cw20Coin { address, amount }| cw4::Member {
// addr: address,
// weight: amount.u128() as u64,
// })
// .collect()
// };
//
// let governance_instantiate = cwd_core::msg::InstantiateMsg {
// name: "DAO DAO".to_string(),
// description: "A DAO that builds DAOs".to_string(),
// voting_registry_module_instantiate_info: ModuleInstantiateInfo {
// code_id: votemod_id,
// msg: to_binary(&cwd_voting_cw4::msg::InstantiateMsg {
// cw4_group_code_id: cw4_id,
// initial_members: initial_weights,
// })
// .unwrap(),
// admin: Some(Admin::CoreModule {}),
// label: "DAO DAO voting module".to_string(),
// },
// proposal_modules_instantiate_info: vec![ModuleInstantiateInfo {
// code_id: proposal_module_code_id,
// msg: to_binary(&proposal_module_instantiate).unwrap(),
// admin: Some(Admin::CoreModule {}),
// label: "DAO DAO governance module".to_string(),
// }],
// initial_items: None,
// dao_uri: None,
// };
//
// let addr = app
// .instantiate_contract(
// core_id,
// Addr::unchecked(CREATOR_ADDR),
// &governance_instantiate,
// &[],
// "DAO DAO",
// None,
// )
// .unwrap();
//
// // Update the block so that weights appear.
// app.update_block(|block| block.height += 1);
//
// addr
// }
29 changes: 0 additions & 29 deletions packages/cwd-testing/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,3 @@ pub fn pre_propose_multiple_contract() -> Box<dyn Contract<Empty>> {
);
Box::new(contract)
}

// pub fn native_staked_balances_voting_contract() -> Box<dyn Contract<Empty>> {
// let contract = ContractWrapper::new(
// cwd_voting_native_staked::contract::execute,
// cwd_voting_native_staked::contract::instantiate,
// cwd_voting_native_staked::contract::query,
// );
// Box::new(contract)
// }

// pub fn cwd_core_contract() -> Box<dyn Contract<Empty>> {
// let contract = ContractWrapper::new(
// cwd_core::contract::execute,
// cwd_core::contract::instantiate,
// cwd_core::contract::query,
// )
// .with_reply(cwd_core::contract::reply);
// Box::new(contract)
// }

// pub fn cwd_voting_cw4_contract() -> Box<dyn Contract<Empty>> {
// let contract = ContractWrapper::new(
// cwd_voting_cw4::contract::execute,
// cwd_voting_cw4::contract::instantiate,
// cwd_voting_cw4::contract::query,
// )
// .with_reply(cwd_voting_cw4::contract::reply);
// Box::new(contract)
// }

0 comments on commit 7bdf091

Please sign in to comment.