Skip to content

Commit b1422fb

Browse files
committed
remove dao-testing dependency on cw-fund-distributor and don't publish
1 parent a48363e commit b1422fb

File tree

8 files changed

+20
-24
lines changed

8 files changed

+20
-24
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/distribution/cw-fund-distributor/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ dao-interface = { workspace = true }
3030
cw-paginate-storage = { workspace = true }
3131

3232
[dev-dependencies]
33-
cw-fund-distributor = { workspace = true }
3433
dao-dao-core = { workspace = true, features = ["library"] }
3534
dao-testing = { workspace = true }
3635
cw-multi-test = { workspace = true }

contracts/distribution/cw-fund-distributor/src/testing/adversarial_tests.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ use cw20::{BalanceResponse, Cw20Coin};
55
use cw_multi_test::{next_block, App, BankSudo, Executor, SudoMsg};
66
use cw_utils::Duration;
77
use dao_testing::contracts::{
8-
cw20_base_contract, cw20_stake_contract, cw_fund_distributor_contract,
9-
dao_voting_cw20_staked_contract,
8+
cw20_base_contract, cw20_stake_contract, dao_voting_cw20_staked_contract,
109
};
1110

11+
use super::cw_fund_distributor_contract;
12+
1213
const CREATOR_ADDR: &str = "creator";
1314
const FEE_DENOM: &str = "ujuno";
1415

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1+
use cosmwasm_std::Empty;
2+
use cw_multi_test::{Contract, ContractWrapper};
3+
14
mod adversarial_tests;
25
mod tests;
6+
7+
pub fn cw_fund_distributor_contract() -> Box<dyn Contract<Empty>> {
8+
let contract = ContractWrapper::new(
9+
crate::contract::execute,
10+
crate::contract::instantiate,
11+
crate::contract::query,
12+
)
13+
.with_migrate(crate::contract::migrate);
14+
Box::new(contract)
15+
}

contracts/distribution/cw-fund-distributor/src/testing/tests.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ use crate::msg::{
22
CW20EntitlementResponse, CW20Response, DenomResponse, ExecuteMsg, InstantiateMsg, MigrateMsg,
33
NativeEntitlementResponse, QueryMsg, TotalPowerResponse, VotingContractResponse,
44
};
5+
use crate::ContractError;
56
use cosmwasm_std::{to_json_binary, Addr, Binary, Coin, Uint128, WasmMsg};
67
use cw20::Cw20Coin;
7-
use cw_fund_distributor::ContractError;
88
use cw_multi_test::{next_block, App, BankSudo, Executor, SudoMsg};
99
use dao_testing::contracts::{
10-
cw20_base_contract, cw20_stake_contract, cw_fund_distributor_contract,
11-
dao_voting_cw20_staked_contract,
10+
cw20_base_contract, cw20_stake_contract, dao_voting_cw20_staked_contract,
1211
};
1312

1413
use crate::msg::ExecuteMsg::{ClaimAll, ClaimCW20, ClaimNatives};
1514
use crate::msg::QueryMsg::TotalPower;
1615
use cosmwasm_std::StdError::GenericErr;
1716
use cw_utils::Duration;
1817

18+
use super::cw_fund_distributor_contract;
19+
1920
const CREATOR_ADDR: &str = "creator";
2021
const FEE_DENOM: &str = "ujuno";
2122

packages/dao-testing/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ serde_json = { workspace = true }
4242

4343
btsg-ft-factory = { workspace = true }
4444
cw-admin-factory = { workspace = true }
45-
cw-fund-distributor = { workspace = true }
4645
cw-hooks = { workspace = true }
4746
cw-payroll-factory = { workspace = true }
4847
cw-token-swap = { workspace = true }

packages/dao-testing/src/contracts/latest.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -244,16 +244,6 @@ pub fn dao_test_custom_factory_contract() -> Box<dyn Contract<Empty>> {
244244
Box::new(contract)
245245
}
246246

247-
pub fn cw_fund_distributor_contract() -> Box<dyn Contract<Empty>> {
248-
let contract = ContractWrapper::new(
249-
cw_fund_distributor::contract::execute,
250-
cw_fund_distributor::contract::instantiate,
251-
cw_fund_distributor::contract::query,
252-
)
253-
.with_migrate(cw_fund_distributor::contract::migrate);
254-
Box::new(contract)
255-
}
256-
257247
pub fn dao_rewards_distributor_contract() -> Box<dyn Contract<Empty>> {
258248
let contract = ContractWrapper::new(
259249
dao_rewards_distributor::contract::execute,

scripts/publish.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,6 @@ cd contracts/external/cw-admin-factory
204204
cargo hack publish --no-dev-deps --allow-dirty
205205
cd "$START_DIR"
206206

207-
# TODO: uncomment once cleaned up and audited
208-
# cd contracts/distribution/cw-fund-distributor
209-
# cargo hack publish --no-dev-deps --allow-dirty
210-
# cd "$START_DIR"
211-
212207
cd contracts/distribution/dao-rewards-distributor
213208
cargo hack publish --no-dev-deps --allow-dirty
214209
cd "$START_DIR"

0 commit comments

Comments
 (0)