Skip to content

Commit

Permalink
separate types.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Dec 30, 2024
1 parent 220576f commit 0cab257
Show file tree
Hide file tree
Showing 8 changed files with 451 additions and 429 deletions.
2 changes: 1 addition & 1 deletion src/channel_handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use crate::common::types::{
CoinString, Error, GameID, Hash, IntoErr, Node, PrivateKey, Program, PublicKey, Puzzle,
PuzzleHash, Sha256tree, Spend, SpendRewardResult, Timeout, ToQuotedProgram,
};
use crate::potato_handler::GameAction;
use crate::potato_handler::types::GameAction;
use crate::referee::{GameMoveDetails, RefereeMaker, RefereeOnChainTransaction};

/// A channel handler runs the game by facilitating the phases of game startup
Expand Down
2 changes: 1 addition & 1 deletion src/games/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub mod calpoker;

use crate::common::standard_coin::read_hex_puzzle;
use crate::common::types::{AllocEncoder, Program};
use crate::potato_handler::GameType;
use crate::potato_handler::types::GameType;
use std::collections::BTreeMap;

pub fn poker_collection(allocator: &mut AllocEncoder) -> BTreeMap<GameType, Program> {
Expand Down
6 changes: 3 additions & 3 deletions src/peer_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ use crate::common::types::{
AllocEncoder, Amount, CoinSpend, CoinString, Error, GameID, Hash, IntoErr, Program, PuzzleHash,
Sha256tree, Spend, SpendBundle, Timeout, ToQuotedProgram,
};
use crate::potato_handler::{
use crate::potato_handler::types::{
BootstrapTowardGame, BootstrapTowardWallet, FromLocalUI, GameStart, GameType, PacketSender,
PeerEnv, PeerMessage, PotatoHandler, PotatoHandlerInit, SpendWalletReceiver, ToLocalUI,
WalletSpendInterface,
PeerEnv, PeerMessage, PotatoHandlerInit, SpendWalletReceiver, ToLocalUI, WalletSpendInterface,
};
use crate::potato_handler::PotatoHandler;

#[derive(Default)]
pub struct MessagePipe {
Expand Down
Loading

0 comments on commit 0cab257

Please sign in to comment.