1pub use crate::server_coin::ServerCoin;
2use crate::UnspentCoinStates;
3use chia::bls::{PublicKey, SecretKey};
4pub use chia::protocol::*;
5pub use chia::puzzles::{EveProof, LineageProof, Proof};
6
7pub struct UnspentCoinsResponse {
8 pub coins: Vec<Coin>,
9 pub last_height: u32,
10 pub last_header_hash: Bytes32,
11}
12
13impl From<UnspentCoinStates> for UnspentCoinsResponse {
14 fn from(unspent_coin_states: UnspentCoinStates) -> Self {
15 Self {
16 coins: unspent_coin_states
17 .coin_states
18 .into_iter()
19 .map(|cs| cs.coin)
20 .collect(),
21 last_height: unspent_coin_states.last_height,
22 last_header_hash: unspent_coin_states.last_header_hash,
23 }
24 }
25}
26
27pub struct SimulatorPuzzle {
28 pub puzzle_hash: Bytes32,
29 pub puzzle_reveal: Program,
30}
31
32pub struct BlsPair {
33 pub sk: SecretKey,
34 pub pk: PublicKey,
35 pub puzzle_hash: Bytes32,
36}