pathfinder2/src/types/edge.rs

16 lines
347 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
2022-09-13 14:54:15 +00:00
#[derive(Clone, Copy, Debug, Default, Hash, PartialEq, Ord, PartialOrd)]
2022-08-30 16:53:34 +00:00
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 {}