| Crates.io | mordor |
| lib.rs | mordor |
| version | 0.1.2 |
| created_at | 2025-01-01 09:02:06.646033+00 |
| updated_at | 2025-01-06 12:03:53.536957+00 |
| description | mordor |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1500671 |
| size | 6,864 |
The Eye of Sauron for Ethereum Beacon Chain slot synchronization.
Mordor watches over the Ethereum beacon chain's slots with unwavering vigilance, providing precise timing calculations that would make even the Dark Lord proud. Never miss a slot again with the all-seeing eye of slot synchronization.
use mordor::SlotSynchronizer;
// Forge the ring with default genesis time
let eye = SlotSynchronizer::default();
// Gaze into current slot
let vision = eye.slot_info().unwrap();
println!("The eye sees slot: {}", vision.slot);
println!("Time elapsed in the slot: {}", vision.seconds_elapsed);
println!("Time remaining until next slot: {}", vision.seconds_remaining);
Add this to your Cargo.toml:
[dependencies]
mordor = "0.1.0"
MIT License - Free as the darkness itself
Pull requests are welcome. The eye sees all contributions.
One Ring to sync them all, One Ring to time them,
One Ring to watch them all and in the darkness bind them