Skip to content

Commit

Permalink
chore: test compile with new names
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJepsen committed Apr 17, 2024
1 parent 0be9b58 commit 37e9086
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
11 changes: 5 additions & 6 deletions kit/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ use dfmm_kit::{
behaviors::{
creator::{self, Create},
deploy::Deploy,
token_admin::{self, TokenAdmin},
token::{self, TokenAdmin},
},
bindings::{
constant_sum_solver::ConstantSumParams, geometric_mean_solver::GeometricMeanParams,
},
pool::{
constant_sum::{ConstantSumAllocationData, ConstantSumPool},
geometric_mean::{GeometricMeanAllocationData, GeometricMeanPool},
// geometric_mean::{GeometricMeanAllocationData, GeometricMeanPool},
BaseConfig,
},
TokenData,
Expand Down Expand Up @@ -65,12 +65,11 @@ pub fn spawn_token_admin(world: &mut World) {
decimals: TOKEN_Y_DECIMALS,
address: None,
};
let data = token_admin::Config {
let data = token::Config {
token_data: vec![token_x, token_y],
};
world.add_agent(
Agent::builder(TOKEN_ADMIN).with_behavior(TokenAdmin::<token_admin::Config> { data }),
);
world
.add_agent(Agent::builder(TOKEN_ADMIN).with_behavior(TokenAdmin::<token::Config> { data }));
}

pub fn spawn_constant_sum_creator(world: &mut World) {
Expand Down
2 changes: 1 addition & 1 deletion kit/tests/deployer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include!("common.rs");

use std::str::FromStr;

use dfmm_kit::behaviors::deployer::DeploymentData;
use dfmm_kit::behaviors::deploy::DeploymentData;
use ethers::types::Address as eAddress;
use tracing::info;

Expand Down
7 changes: 2 additions & 5 deletions kit/tests/token_admin_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ async fn run_token_admin() {

let task = tokio::spawn(async move {
loop {
if let Ok(message) = messager
.get_next::<Vec<TokenData>>()
.await
{
if let Ok(message) = messager.get_next::<Vec<TokenData>>().await {
let data = message.data;
info!("Saw message data: {:#?}", data);

Expand All @@ -35,7 +32,7 @@ async fn run_token_admin() {
decimals: TOKEN_Y_DECIMALS,
address: None,
};
let mock_data = token_admin::Config {
let mock_data = token::Config {
token_data: vec![token_x, token_y],
};
assert_eq!(data[0].name, mock_data.token_data[0].name);
Expand Down

0 comments on commit 37e9086

Please sign in to comment.