pathfinder2/src/types/edge.rs

16 lines
342 B
Rust
Raw Normal View History

2022-08-30 21:30:38 +00:00
use crate::types::Address;
use crate::types::U256;
2022-08-30 16:53:34 +00:00
#[derive(Clone, Copy, Debug, Default, Hash, PartialEq, PartialOrd)]
pub struct Edge {
pub from: Address,
pub to: Address,
pub token: Address,
pub capacity: U256,
}
// TODO comparison, hash, etc. can ignore the capacity field.
// TODO can we derive it?
impl Eq for Edge {}