mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-13 06:29:25 +00:00
Add non-transaction-chaining scheduler
This commit is contained in:
@@ -3,12 +3,22 @@ use std::io;
|
||||
|
||||
use group::GroupEncoding;
|
||||
|
||||
use borsh::{BorshSerialize, BorshDeserialize};
|
||||
|
||||
use serai_primitives::{ExternalAddress, Balance};
|
||||
|
||||
use crate::Id;
|
||||
|
||||
/// An address on the external network.
|
||||
pub trait Address: Send + Sync + Clone + Into<ExternalAddress> + TryFrom<ExternalAddress> {
|
||||
pub trait Address:
|
||||
Send
|
||||
+ Sync
|
||||
+ Clone
|
||||
+ Into<ExternalAddress>
|
||||
+ TryFrom<ExternalAddress>
|
||||
+ BorshSerialize
|
||||
+ BorshDeserialize
|
||||
{
|
||||
/// Write this address.
|
||||
fn write(&self, writer: &mut impl io::Write) -> io::Result<()>;
|
||||
/// Read an address.
|
||||
|
||||
Reference in New Issue
Block a user