docs: (WIP) In-code docs for encoders

- TODO double check all this, look for missing docs
This commit is contained in:
TAMARA LIPOWSKI
2025-02-04 18:11:32 -05:00
parent 25a26f21be
commit 52cce5f5c6
10 changed files with 72 additions and 6 deletions

View File

@@ -2,6 +2,8 @@ use crate::encoding::{
errors::EncodingError,
models::{EncodingContext, Swap},
};
/// This trait must be implemented in order to encode a swap for a specific protocol.
pub trait SwapEncoder: Sync + Send {
fn new(executor_address: String) -> Self
where