Skip to content

Commit

Permalink
More prep for enrollment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ismellike committed Jun 25, 2024
1 parent 0d42b5c commit a07e26a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion contracts/arena-wager-module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ cosmwasm-std = { workspace = true }
cw2 = { workspace = true }
cw-competition-base = { workspace = true }
arena-interface = { workspace = true }
itertools = { workspace = true }
4 changes: 4 additions & 0 deletions scripts/src/arena.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use cw_orch::prelude::*;

use orch_interface::{
arena_competition_enrollment::ArenaCompetitionEnrollmentContract,
arena_core::ArenaCoreContract, arena_escrow::ArenaEscrowContract,
arena_league_module::ArenaLeagueModuleContract,
arena_tournament_module::ArenaTournamentModuleContract,
Expand All @@ -15,6 +16,7 @@ pub struct Arena<Chain> {
pub arena_league_module: ArenaLeagueModuleContract<Chain>,
pub arena_tournament_module: ArenaTournamentModuleContract<Chain>,
pub arena_escrow: ArenaEscrowContract<Chain>,
pub arena_competition_enrollment: ArenaCompetitionEnrollmentContract<Chain>,
pub dao_dao: DaoDao<Chain>,
}

Expand All @@ -26,6 +28,7 @@ impl<Chain: CwEnv> Arena<Chain> {
arena_league_module: ArenaLeagueModuleContract::new(chain.clone()),
arena_tournament_module: ArenaTournamentModuleContract::new(chain.clone()),
arena_escrow: ArenaEscrowContract::new(chain.clone()),
arena_competition_enrollment: ArenaCompetitionEnrollmentContract::new(chain.clone()),
dao_dao: DaoDao::new(chain.clone()),
}
}
Expand All @@ -36,6 +39,7 @@ impl<Chain: CwEnv> Arena<Chain> {
self.arena_wager_module.upload()?;
self.arena_league_module.upload()?;
self.arena_tournament_module.upload()?;
self.arena_competition_enrollment.upload()?;

if with_dao_dao {
self.dao_dao.upload()?;
Expand Down
3 changes: 3 additions & 0 deletions scripts/src/tests/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ impl<Chain: CwEnv> cw_orch::contract::Deploy<Chain> for Arena<Chain> {
Box::new(&mut self.dao_dao.dao_proposal_sudo),
Box::new(&mut self.arena_core),
Box::new(&mut self.arena_tournament_module),
Box::new(&mut self.arena_wager_module),
Box::new(&mut self.arena_league_module),
Box::new(&mut self.arena_escrow),
Box::new(&mut self.arena_competition_enrollment),
]
}
}

0 comments on commit a07e26a

Please sign in to comment.