abstract_std/objects/pool/
pool_reference.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::objects::{pool_id::PoolAddress, unique_pool_id::UniquePoolId};

#[cosmwasm_schema::cw_serde]
pub struct PoolReference {
    pub unique_id: UniquePoolId,
    pub pool_address: PoolAddress,
}

impl PoolReference {
    pub fn new(unique_id: UniquePoolId, pool_address: PoolAddress) -> Self {
        Self {
            unique_id,
            pool_address,
        }
    }
}